Changeset 8247
- Timestamp:
- 05/11/11 07:27:33 (14 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/EnumToString/EnumToString.cpp
r8223 r8247 9 9 char *name = NULL; 10 10 int enum_in; 11 12 /*Boot module: */13 MODULEBOOT();14 11 15 12 /*checks on arguments on the matlab side: */ … … 24 21 /* output: */ 25 22 WriteData(NAME,name); 26 27 /*end module: */28 MODULEEND();29 23 } 30 24 -
issm/trunk/src/mex/StringToEnum/StringToEnum.cpp
r8223 r8247 9 9 char *name = NULL; 10 10 int enum_out; 11 12 /*Boot module: */13 MODULEBOOT();14 11 15 12 /*checks on arguments on the matlab side: */ … … 24 21 /* output: */ 25 22 WriteData(ENUMOUT,enum_out); 26 27 /*end module: */28 MODULEEND();29 23 } 30 24 -
issm/trunk/src/mex/Test/Test.cpp
r7810 r8247 14 14 int numel; 15 15 16 printf("Parsing options:\n"); 17 options=new Options(0,nrhs,prhs); 18 19 options->Get(&test,"test",1.); 20 printf("\n value of \"test\" is %g\n",test); 21 22 options->Get(&name,"model.name","default"); 23 printf("\n value of \"model.name\" is %s\n",name); 24 25 options->Get(&test,"CELL[0,2]",1.); 26 printf("\n value of \"CELL[0,2]\" is %g\n",test); 27 28 options->Get(&logical,"logical",true); 29 printf("\n value of \"logical\" is %s\n",logical?"true":"false"); 30 31 options->Get(&matrix,&numel,"matrix"); 32 printarray(matrix,numel); 33 34 delete options; 35 xfree((void**)&name); 36 xfree((void**)&matrix); 16 MODULEBOOT(); 17 MODULEEND(); 37 18 } 38 19
Note:
See TracChangeset
for help on using the changeset viewer.