Ignore:
Timestamp:
07/07/10 16:38:58 (15 years ago)
Author:
Eric.Larour
Message:

Reshuffling Qmu routines

File:
1 edited

Legend:

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

    r4439 r4449  
    1919        double*     variables=NULL;
    2020        char**      variables_descriptors=NULL;
     21        char*       string=NULL;
    2122        int         numvariables;
    2223        mxArray*    pfield=NULL;
     
    4142        variables_descriptors=(char**)xmalloc(numvariables*sizeof(char*));
    4243        for(i=0;i<numvariables;i++){
     44               
    4345                pfield=mxGetCell(VARIABLESDESCRIPTORS,i);
    44                 variables_descriptors[i]=mxGetString(pfield);
     46                stringlength = (mxGetM(pfield) * mxGetN(pfield) * sizeof(mxChar)) + 1 ;
     47                mxGetString(pfield,string,stringlength);
     48               
     49                variables_descriptors[i]=string;
    4550        }
    4651       
Note: See TracChangeset for help on using the changeset viewer.