Changeset 8247


Ignore:
Timestamp:
05/11/11 07:27:33 (14 years ago)
Author:
Mathieu Morlighem
Message:

DO NOT use moduleboot and moduleend in EnumToString/EnumToString.cpp and StringToEnum/StringToEnum.cpp: that makes larsen crash

Location:
issm/trunk/src/mex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/EnumToString/EnumToString.cpp

    r8223 r8247  
    99        char    *name    = NULL;
    1010        int      enum_in;
    11 
    12         /*Boot module: */
    13         MODULEBOOT();
    1411
    1512        /*checks on arguments on the matlab side: */
     
    2421        /* output: */
    2522        WriteData(NAME,name);
    26 
    27         /*end module: */
    28         MODULEEND();
    2923}
    3024
  • issm/trunk/src/mex/StringToEnum/StringToEnum.cpp

    r8223 r8247  
    99        char    *name    = NULL;
    1010        int      enum_out;
    11 
    12         /*Boot module: */
    13         MODULEBOOT();
    1411
    1512        /*checks on arguments on the matlab side: */
     
    2421        /* output: */
    2522        WriteData(ENUMOUT,enum_out);
    26 
    27         /*end module: */
    28         MODULEEND();
    2923}
    3024
  • issm/trunk/src/mex/Test/Test.cpp

    r7810 r8247  
    1414        int      numel;
    1515
    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();
    3718}
    3819
Note: See TracChangeset for help on using the changeset viewer.