- Timestamp:
- 11/16/12 08:10:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 13397-13398,13401,13407-13582,13584-13974
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c/modules/CreateNodalConstraintsx/CreateNodalConstraintsx.cpp
r13395 r13975 12 12 void CreateNodalConstraintsx( Vector<IssmDouble>** pys, Nodes* nodes,int configuration_type){ 13 13 14 int i; 15 16 /*intermediary: */ 17 int numberofdofs; 14 bool oldalloc = false; 18 15 19 16 /*output: */ … … 21 18 22 19 /*figure out how many dofs we have: */ 23 numberofdofs=nodes->NumberOfDofs(configuration_type,SsetEnum); 20 int ssize=nodes->NumberOfDofs(configuration_type,SsetEnum); 21 int slocalsize = nodes->NumberOfDofsLocal(configuration_type,SsetEnum); 24 22 25 23 /*allocate:*/ 26 ys=new Vector<IssmDouble>(numberofdofs); 24 if(oldalloc) 25 ys=new Vector<IssmDouble>(ssize); 26 else 27 ys=new Vector<IssmDouble>(slocalsize,ssize); 27 28 28 29 /*go through all nodes, and for the ones corresponding to this configuration_type, fill the 29 30 * constraints vector with the constraint values: */ 30 for (i=0;i<nodes->Size();i++){31 for(int i=0;i<nodes->Size();i++){ 31 32 Node* node=(Node*)nodes->GetObjectByOffset(i); 32 33 if (node->InAnalysis(configuration_type)){
Note:
See TracChangeset
for help on using the changeset viewer.