Changeset 3444
- Timestamp:
- 04/07/10 17:07:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticVert/CreateConstraintsDiagnosticVert.cpp
r3443 r3444 14 14 int i; 15 15 DataSet* constraints = NULL; 16 int count=0; 16 17 17 18 /*Create constraints: */ … … 25 26 26 27 /*Create spcs from x,y,z, as well as the spc values on those spcs: */ 28 count=1; 27 29 for (i=0;i<iomodel->numberofvertices;i++){ 28 30 … … 30 32 if(iomodel->my_vertices[i]){ 31 33 32 if ((int) spcvelocity[6*i+2]){34 if ((int)iomodel->spcvelocity[6*i+2]){ 33 35 constraints->AddObject(new Spc(count,i+1,1,*(iomodel->spcvelocity+6*i+5)/iomodel->yts)); //add count'th spc, on node i+1, setting dof 1 to vx. 36 count++; 34 37 35 38 } 36 } //if((my_grids[i]==1))39 } 37 40 } 38 41 … … 41 44 constraints->Presort(); 42 45 46 cleanup_and_return: 43 47 /*Free data: */ 44 48 xfree((void**)&iomodel->spcvelocity); 45 49 46 50 /*Assign output pointer: */ 47 51 *pconstraints=constraints;
Note:
See TracChangeset
for help on using the changeset viewer.