Changeset 22689
- Timestamp:
 - 04/11/18 18:27:34 (8 years ago)
 - Location:
 - issm/trunk-jpl/src/wrappers/javascript/io
 - Files:
 - 
      
- 2 edited
 
- 
          
  WriteJavascriptData.cpp (modified) (1 diff)
 - 
          
  javascriptio.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/wrappers/javascript/io/WriteJavascriptData.cpp
r19838 r22689 78 78 } 79 79 /*}}}*/ 80 /*FUNCTION WriteData(IssmPDouble* pdouble, IssmSeqVec<double> vector){{{*/ 81 void WriteData(IssmPDouble** pdataref, IssmSeqVec<double>* vector){ 82 83 double* dataref=NULL; 84 double* vector_ptr=NULL; 85 int rows; 86 87 if(vector){ 88 /*call toolkit routine: */ 89 vector_ptr=vector->ToMPISerial(); 90 vector->GetSize(&rows); 91 92 /*now create the js vector */ 93 dataref=xNew<double>(rows); 94 for(int i=0;i<rows;i++) dataref[i]=vector_ptr[i]; 95 } 96 97 /*Clean-up and return*/ 98 xDelete<double>(vector_ptr); 99 *pdataref=dataref; 100 } 101 /*}}}*/ 80 102 /*FUNCTION WriteData(IssmPDouble* pdouble, IssmPDouble double){{{*/ 81 103 void WriteData(IssmPDouble* pdouble, IssmPDouble doublein){  - 
      
issm/trunk-jpl/src/wrappers/javascript/io/javascriptio.h
r19838 r22689 25 25 void WriteData(char** pstring, char* stringin); 26 26 void WriteData(IssmPDouble* pdouble, IssmPDouble doublein); 27 void WriteData(IssmPDouble** pdataref, IssmSeqVec<double>* vector); 27 28 void WriteData(IssmPDouble** pdouble, void*); 28 29  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)