Changeset 7747


Ignore:
Timestamp:
04/01/11 08:42:33 (14 years ago)
Author:
Mathieu Morlighem
Message:

Commited Test for testing

File:
1 edited

Legend:

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

    r7519 r7747  
    77void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
    88
     9        Options *options = NULL;
     10        double   test;
     11        char    *name    = NULL;
     12        bool     logical;
     13
     14        if(verbose) printf("Parsing options:\n");
     15        options=new Options(0,nrhs,prhs);
     16
     17        options->Get(&test,"test",1.);
     18        printf("\n value of \"test\" is %g\n",test);
     19
     20        options->Get(&name,"model.name","default");
     21        printf("\n value of \"model.name\" is %s\n",name);
     22
     23        options->Get(&test,"CELL[0,2]",1.);
     24        printf("\n value of \"CELL[0,2]\" is %g\n",test);
     25
     26        options->Get(&logical,"logical");
     27        printf("\n value of \"logical\" is %s\n",logical?"true":"false");
     28
     29        delete options;
     30        xfree((void**)&name);
    931}
    1032
Note: See TracChangeset for help on using the changeset viewer.