Changeset 7116


Ignore:
Timestamp:
01/14/11 16:13:56 (14 years ago)
Author:
Mathieu Morlighem
Message:

Fixed crash: when model is an object and not a structure mxGetField does not work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp

    r7097 r7116  
    108108        /*Deal with petsc options: */
    109109        #ifdef _SERIAL_
    110                 pfield=mxGetField(iomodel_handle,0,"petscoptions_analyses");
     110                pfield=mxGetAssignedField(iomodel_handle,0,"petscoptions_analyses");
    111111                FetchData(&analyses,&numpetscoptions,pfield);
    112                 pfield=mxGetField(iomodel_handle,0,"petscoptions_strings");
     112                pfield=mxGetAssignedField(iomodel_handle,0,"petscoptions_strings");
    113113                petscstrings=(char**)xmalloc(numpetscoptions*sizeof(char*)); //allocate
    114114                for (i=0;i<numpetscoptions;i++){
Note: See TracChangeset for help on using the changeset viewer.