Changeset 22678
- Timestamp:
- 04/06/18 09:52:38 (7 years ago)
- Location:
- issm/trunk-jpl/src/wrappers/InterpFromGridToMesh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.h
r22676 r22678 55 55 #define XHANDLE xIn,nodsIn,1 56 56 #define YHANDLE yIn,nodsIn,1 57 #define DATAHANDLE dataIn, nodsIn,158 #define XMESHHANDLE xMeshIn, nodsIn,159 #define YMESHHANDLE yMeshIn, nodsIn,157 #define DATAHANDLE dataIn,dataNumRowsIn,dataNumColsIn 58 #define XMESHHANDLE xMeshIn,meshNumRowsIn,1 59 #define YMESHHANDLE yMeshIn,meshNumRowsIn,1 60 60 #define DEFAULTHANDLE defaultValue 61 61 #define INTERPENUM interpType 62 62 /* serial output macros: */ 63 63 #define DATAMESH pdataMesh 64 #define WRAPPER(modulename) extern "C" { int InterpFromGridToMeshModule(double** pdataMesh, double* xIn, double* yIn, double* dataIn, double* xMeshIn, double* yMeshIn, double defaultValue, int nodsIn, char* interpType)64 #define WRAPPER(modulename) extern "C" { int InterpFromGridToMeshModule(double** pdataMesh, double* xIn, double* yIn, double* dataIn, double* xMeshIn, double* yMeshIn, double defaultValue, int nodsIn, int dataNumRowsIn, int dataNumColsIn, int meshNumRowsIn, char* interpType) 65 65 #define nrhs 6 66 66 #endif -
issm/trunk-jpl/src/wrappers/InterpFromGridToMesh/InterpFromGridToMesh.js
r22673 r22678 22 22 var dataMesh = {}; 23 23 var dataMeshPtr = {}; 24 var dataNumCols = 0; 25 var dataNumRows = 0; 24 26 var ddata = {}; 25 27 var ddataHeap = {}; … … 38 40 var dyPtr = {}; 39 41 var interpType = ''; 42 var meshNumRows = 0; 40 43 var ndata = {}; 41 44 var nods = 0; … … 97 100 98 101 nods = xIn.length; 102 dataNumRows = dataIn.length; 103 dataNumCols = dataIn[0].length; 104 meshNumRows = xMeshIn.length; 99 105 100 106 … … 135 141 'number', // input : defaultValue 136 142 'number', // input : nods 143 'number', // input : dataNumRows 144 'number', // input : dataNumCols 145 'number', // input : meshNumRows 137 146 'string', // input : interpType 138 147 ] … … 154 163 defaultValue, 155 164 nods, 165 dataNumRows, 166 dataNumCols, 167 meshNumRows, 156 168 interpType 157 169 );
Note:
See TracChangeset
for help on using the changeset viewer.