Changeset 4001 for issm/trunk/src/c/modules/SpcNodesx/SpcNodesx.cpp
- Timestamp:
- 06/02/10 16:25:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/SpcNodesx/SpcNodesx.cpp
r3913 r4001 10 10 #include "../../EnumDefinitions/EnumDefinitions.h" 11 11 12 void SpcNodesx( DofVec** pyg, DataSet* nodes,DataSet* constraints){12 void SpcNodesx(Vec* pyg, DataSet* nodes,DataSet* constraints){ 13 13 14 14 int i; … … 17 17 18 18 /*output: */ 19 DofVec* yg=NULL;19 Vec* yg=NULL; 20 20 21 21 /*First, recover number of dofs from nodes: */ … … 24 24 if(numberofdofs){ 25 25 26 /*Allocate dofvec: */27 yg=new DofVec("yg");28 yg->numdofs=numberofdofs;29 30 26 /*Allocate yg: */ 31 yg ->vector=NewVec(numberofdofs);27 yg=NewVec(numberofdofs); 32 28 33 29 /*Now, go through constraints, and update the nodes and the constraint vector at the same time: */ 34 constraints->SetupSpcs(nodes,yg ->vector);30 constraints->SetupSpcs(nodes,yg); 35 31 36 32 /*Specify numentries: */ 37 33 VecGetSize(yg->vector,&gsize); 38 yg->numentries=(int)gsize/yg->numdofs;39 }40 else{41 /*Allocate dofvec: */42 yg=new DofVec("yg");43 34 } 44 35
Note:
See TracChangeset
for help on using the changeset viewer.