Changeset 3456 for issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateConstraintsDiagnosticStokes.cpp
- Timestamp:
- 04/08/10 08:32:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateConstraintsDiagnosticStokes.cpp
r3454 r3456 15 15 DataSet* constraints = NULL; 16 16 Spc* spc = NULL; 17 int count; 18 19 /*spc intermediary data: */ 20 double* gridonstokes=NULL; 17 int count=0; 21 18 22 19 /*Create constraints: */ … … 27 24 28 25 /*Fetch data: */ 29 IoModelFetchData(& gridonstokes,NULL,NULL,iomodel_handle,"gridonstokes");26 IoModelFetchData(&iomodel->gridonstokes,NULL,NULL,iomodel_handle,"gridonstokes"); 30 27 31 28 count=1; //matlab indexing … … 35 32 if((iomodel->my_vertices[i]==1)){ 36 33 37 if ((int)! gridonstokes[i]){34 if ((int)!iomodel->gridonstokes[i]){ 38 35 39 36 /*This grid will see its vx,vy and vz dofs spc'd to pattyn velocities: */ … … 50 47 } 51 48 49 /*Free data: */ 50 xfree((void**)&iomodel->gridonstokes); 51 52 52 /*All our datasets are already order by ids. Set presort flag so that later on, when sorting is requested on these 53 53 * datasets, it will not be redone: */ 54 54 constraints->Presort(); 55 56 /*Free data: */57 xfree((void**)&gridonstokes);58 55 59 56 cleanup_and_return:
Note:
See TracChangeset
for help on using the changeset viewer.