- Timestamp:
- 07/07/10 16:38:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/InputUpdateFromDakota/InputUpdateFromDakota.cpp
r4439 r4449 19 19 double* variables=NULL; 20 20 char** variables_descriptors=NULL; 21 char* string=NULL; 21 22 int numvariables; 22 23 mxArray* pfield=NULL; … … 41 42 variables_descriptors=(char**)xmalloc(numvariables*sizeof(char*)); 42 43 for(i=0;i<numvariables;i++){ 44 43 45 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; 45 50 } 46 51
Note:
See TracChangeset
for help on using the changeset viewer.