Changeset 7738


Ignore:
Timestamp:
03/31/11 16:14:06 (14 years ago)
Author:
Mathieu Morlighem
Message:

New interface for Options dataset

File:
1 edited

Legend:

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

    r7734 r7738  
    4242        FILE*   fid=NULL;
    4343
    44         DataSet* options=NULL;
     44        Options* options=NULL;
    4545
    4646        /* output: */
     
    107107        if (verbose) printf("  filnam =\"%s\"\n",filnam);
    108108
    109         if (nrhs > NRHS) {
    110                 if (verbose) printf("Parsing options:\n");
    111                 options=OptionsParse(NRHS,nrhs,prhs);
    112         }
     109        if (verbose) printf("Parsing options:\n");
     110        options=new Options(NRHS,nrhs,prhs);
    113111
    114112        /*some checks*/
     
    163161        WriteData(ERRORFLAG,ierror);
    164162
    165         if (options) {
    166                 delete options;
    167                 options=NULL;
    168         }
    169 
    170         if (mxIsCell(NOTES) && notes)
    171                 xfree((void**)&notes);
     163        /*Clean-up*/
     164        delete options;
     165        if (mxIsCell(NOTES) && notes) xfree((void**)&notes);
    172166
    173167        /*end module: */
Note: See TracChangeset for help on using the changeset viewer.