- Timestamp:
- 04/08/10 08:32:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/Prognostic/CreateConstraintsPrognostic.cpp
r3452 r3456 18 18 Spc* spc = NULL; 19 19 20 /*spc intermediary data: */21 double* spcthickness=NULL;22 23 20 /*Create constraints: */ 24 21 constraints = new DataSet(ConstraintsEnum()); 25 22 26 23 /*Fetch data: */ 27 IoModelFetchData(& spcthickness,NULL,NULL,iomodel_handle,"spcthickness");24 IoModelFetchData(&iomodel->spcthickness,NULL,NULL,iomodel_handle,"spcthickness"); 28 25 29 26 count=1;//matlab indexing … … 33 30 if((iomodel->my_vertices[i]==1)){ 34 31 35 if ((int) spcthickness[2*i]){32 if ((int)iomodel->spcthickness[2*i]){ 36 33 37 constraints->AddObject(new Spc(count,i+1,1,*( spcthickness+2*i+1)));34 constraints->AddObject(new Spc(count,i+1,1,*(iomodel->spcthickness+2*i+1))); 38 35 count++; 39 36 } 40 41 37 } //if((my_vertices[i]==1)) 42 38 } 43 39 40 /*Free data: */ 41 xfree((void**)&iomodel->spcthickness); 42 44 43 /*All our datasets are already order by ids. Set presort flag so that later on, when sorting is requested on these 45 44 * datasets, it will not be redone: */ 46 45 constraints->Presort(); 47 46 48 /*Free data: */49 xfree((void**)&spcthickness);50 51 47 cleanup_and_return: 52 48
Note:
See TracChangeset
for help on using the changeset viewer.