Changeset 2290
- Timestamp:
- 09/23/09 14:45:01 (15 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/InterpFromGridToMesh/InterpFromGridToMesh.cpp
r2289 r2290 1 /*!\file InterpFromGrid .c1 /*!\file InterpFromGridToMesh.c 2 2 * \brief: data interpolation from a list of (x,y,values) into mesh grids 3 3 4 InterpFromGrid .c4 InterpFromGridToMesh.c 5 5 6 6 usage: 7 data_mesh=InterpFromGrid (x,y,data,x_mesh,y_mesh);7 data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh); 8 8 9 9 where: … … 19 19 */ 20 20 21 #include "./InterpFromGrid .h"21 #include "./InterpFromGridToMesh.h" 22 22 23 23 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { … … 50 50 51 51 /*checks on arguments on the matlab side: */ 52 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromGrid Usage);52 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromGridToMeshUsage); 53 53 54 54 /*Input datasets: */ … … 61 61 62 62 /* Run core computations: */ 63 InterpFromGrid x( &data_mesh, x, x_rows, y, y_rows, data, data_rows,data_cols, x_mesh, y_mesh, x_mesh_rows,default_value);63 InterpFromGridToMeshx( &data_mesh, x, x_rows, y, y_rows, data, data_rows,data_cols, x_mesh, y_mesh, x_mesh_rows,default_value); 64 64 65 65 /*Write data: */ … … 70 70 } 71 71 72 void InterpFromGrid Usage(void)72 void InterpFromGridToMeshUsage(void) 73 73 { 74 74 _printf_(" usage:\n"); 75 _printf_(" data_mesh=InterpFromGrid (x,y,data,x_mesh,y_mesh,defult_value);\n\n");75 _printf_(" data_mesh=InterpFromGridToMesh(x,y,data,x_mesh,y_mesh,defult_value);\n\n"); 76 76 _printf_(" where:\n"); 77 77 _printf_(" x,y: coordinates of matrix data\n"); -
issm/trunk/src/mex/InterpFromGridToMesh/InterpFromGridToMesh.h
r2289 r2290 1 /*!\file InterpFromGrid .h1 /*!\file InterpFromGridToMesh.h 2 2 * \brief: prototype for Data Interpolation mex module. 3 3 */ 4 4 5 #ifndef _InterpFromGrid _H6 #define _InterpFromGrid _H5 #ifndef _InterpFromGridToMesh_H 6 #define _InterpFromGridToMesh_H 7 7 8 8 /* local prototypes: */ 9 void InterpFromGrid Usage(void);9 void InterpFromGridToMeshUsage(void); 10 10 11 11 #include "../../c/issm.h" 12 12 13 13 #undef __FUNCT__ 14 #define __FUNCT__ "InterpFromGrid "14 #define __FUNCT__ "InterpFromGridToMesh" 15 15 16 16 #undef CLEANUP 17 #define CLEANUP InterpFromGrid LocalCleanup();17 #define CLEANUP InterpFromGridToMeshLocalCleanup(); 18 18 19 19 … … 35 35 #define NRHS 6 36 36 37 #endif /* _INTERPFROMGRI d_H */37 #endif /* _INTERPFROMGRIDTOMESH_H */ -
issm/trunk/src/mex/InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp
r2288 r2290 1 /*!\file InterpFromMesh 2d.c1 /*!\file InterpFromMeshToMesh2d.c 2 2 * \brief: data interpolation from a list of (x,y,values) into mesh grids 3 3 4 InterpFromMesh 2d.c4 InterpFromMeshToMesh2d.c 5 5 6 6 usage: 7 data_mesh=InterpFromMesh 2d(index,x,y,data,x_mesh,y_mesh);7 data_mesh=InterpFromMeshToMesh2d(index,x,y,data,x_mesh,y_mesh); 8 8 9 9 where: … … 19 19 */ 20 20 21 #include "./InterpFromMesh 2d.h"21 #include "./InterpFromMeshToMesh2d.h" 22 22 23 23 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { … … 57 57 58 58 /*checks on arguments on the matlab side: */ 59 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromMesh 2dUsage);59 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromMeshToMesh2dUsage); 60 60 61 61 /*Input datasets: */ … … 82 82 83 83 /* Run core computations: */ 84 InterpFromMesh 2dx(&data_prime,index_data,x_data,y_data,nods_data,nels_data,data,data_rows,x_prime,y_prime,nods_prime,default_value);84 InterpFromMeshToMesh2dx(&data_prime,index_data,x_data,y_data,nods_data,nels_data,data,data_rows,x_prime,y_prime,nods_prime,default_value); 85 85 86 86 /*Write data: */ … … 91 91 } 92 92 93 void InterpFromMesh 2dUsage(void)93 void InterpFromMeshToMesh2dUsage(void) 94 94 { 95 95 _printf_(" usage:\n"); 96 _printf_(" data_prime=InterpFromMesh 2d(index,x,y,data,x_prime,y_prime,default_value);\n\n");96 _printf_(" data_prime=InterpFromMeshToMesh2d(index,x,y,data,x_prime,y_prime,default_value);\n\n"); 97 97 _printf_(" where:\n"); 98 98 _printf_(" x,y: coordinates of the nodes where data is defined\n"); -
issm/trunk/src/mex/InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.h
r2288 r2290 1 /*!\file InterpFromMesh 2d.h1 /*!\file InterpFromMeshToMesh2d.h 2 2 * \brief: prototype for Data Interpolation mex module. 3 3 */ … … 7 7 8 8 /* local prototypes: */ 9 void InterpFromMesh 2dUsage(void);9 void InterpFromMeshToMesh2dUsage(void); 10 10 11 11 #include "../../c/issm.h" 12 12 13 13 #undef __FUNCT__ 14 #define __FUNCT__ "InterpFromMesh 2d"14 #define __FUNCT__ "InterpFromMeshToMesh2d" 15 15 16 16 #undef CLEANUP 17 #define CLEANUP InterpFromMesh 2dLocalCleanup();17 #define CLEANUP InterpFromMeshToMesh2dLocalCleanup(); 18 18 19 19 … … 36 36 #define NRHS 7 37 37 38 #endif /* _INTERPFROMMESH 2D_H */38 #endif /* _INTERPFROMMESHTOMESH2D_H */ -
issm/trunk/src/mex/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp
r2288 r2290 1 /*!\file InterpFromMesh 3d.c1 /*!\file InterpFromMeshToMesh3d.c 2 2 * \brief: data interpolation from a list of (x,y,values) into mesh grids 3 3 4 InterpFromMesh 3d.c4 InterpFromMeshToMesh3d.c 5 5 6 6 usage: 7 data_mesh=InterpFromMesh 3d(index,x,y,z,data,x_mesh,y_mesh,z_mesh);7 data_mesh=InterpFromMeshToMesh3d(index,x,y,z,data,x_mesh,y_mesh,z_mesh); 8 8 9 9 where: … … 19 19 */ 20 20 21 #include "./InterpFromMesh 3d.h"21 #include "./InterpFromMeshToMesh3d.h" 22 22 23 23 void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { … … 61 61 62 62 /*checks on arguments on the matlab side: */ 63 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromMesh 3dUsage);63 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&InterpFromMeshToMesh3dUsage); 64 64 65 65 /*Input datasets: */ … … 87 87 88 88 /* Run core computations: */ 89 InterpFromMesh 3dx(&data_prime,index_data,x_data,y_data,z_data,nods_data,nels_data,data,data_rows,x_prime,y_prime,z_prime,nods_prime,default_value);89 InterpFromMeshToMesh3dx(&data_prime,index_data,x_data,y_data,z_data,nods_data,nels_data,data,data_rows,x_prime,y_prime,z_prime,nods_prime,default_value); 90 90 91 91 /*Write data: */ … … 96 96 } 97 97 98 void InterpFromMesh 3dUsage(void)98 void InterpFromMeshToMesh3dUsage(void) 99 99 { 100 100 _printf_(" usage:\n"); 101 _printf_(" data_prime=InterpFromMesh 3d(index,x,y,z,data,x_prime,y_prime,z_prime,default_value);\n\n");101 _printf_(" data_prime=InterpFromMeshToMesh3d(index,x,y,z,data,x_prime,y_prime,z_prime,default_value);\n\n"); 102 102 _printf_(" where:\n"); 103 103 _printf_(" x,y,z: coordinates of the nodes where data is defined\n"); -
issm/trunk/src/mex/InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h
r2288 r2290 1 /*!\file InterpFromMesh 3d.h1 /*!\file InterpFromMeshToMesh3d.h 2 2 * \brief: prototype for Data Interpolation mex module. 3 3 */ … … 7 7 8 8 /* local prototypes: */ 9 void InterpFromMesh 3dUsage(void);9 void InterpFromMeshToMesh3dUsage(void); 10 10 11 11 #include "../../c/issm.h" 12 12 13 13 #undef __FUNCT__ 14 #define __FUNCT__ "InterpFromMesh 3d"14 #define __FUNCT__ "InterpFromMeshToMesh3d" 15 15 16 16 #undef CLEANUP 17 #define CLEANUP InterpFromMesh 3dLocalCleanup();17 #define CLEANUP InterpFromMeshToMesh3dLocalCleanup(); 18 18 19 19 … … 38 38 #define NRHS 9 39 39 40 #endif /* _INTERPFROMMESH 3D_H */40 #endif /* _INTERPFROMMESHTOMESH3D_H */
Note:
See TracChangeset
for help on using the changeset viewer.