Changeset 8816
- Timestamp:
- 07/06/11 11:58:06 (14 years ago)
- Location:
- issm/trunk/src/c/modules
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/CreateNodalConstraintsx/CreateNodalConstraintsx.cpp
r5772 r8816 10 10 #include "../../EnumDefinitions/EnumDefinitions.h" 11 11 12 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int analysis_type){12 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int configuration_type){ 13 13 14 14 int i; … … 21 21 22 22 /*figure out how many dofs we have: */ 23 numberofdofs=nodes->NumberOfDofs( analysis_type,SsetEnum);23 numberofdofs=nodes->NumberOfDofs(configuration_type,SsetEnum); 24 24 25 25 /*allocate:*/ 26 26 ys=NewVec(numberofdofs); 27 27 28 /*go through all nodes, and for the ones corresponding to this analysis_type, fill the28 /*go through all nodes, and for the ones corresponding to this configuration_type, fill the 29 29 * constraints vector with the constraint values: */ 30 30 for (i=0;i<nodes->Size();i++){ 31 31 Node* node=(Node*)nodes->GetObjectByOffset(i); 32 if (node->InAnalysis( analysis_type)){32 if (node->InAnalysis(configuration_type)){ 33 33 node->CreateNodalConstraints(ys); 34 34 } -
issm/trunk/src/c/modules/CreateNodalConstraintsx/CreateNodalConstraintsx.h
r5772 r8816 9 9 10 10 /* local prototypes: */ 11 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int analysis_type);11 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int configuration_type); 12 12 13 13 #endif /* _CREATENODALCONSTRAINTSX_H */ 14 -
issm/trunk/src/c/modules/GroundingLineMigrationx/GroundingLineMigrationxUtils.cpp
r8303 r8816 78 78 double* potential_sheet_ungrounding=NULL; 79 79 int numnods; 80 int analysis_type;80 int configuration_type; 81 81 82 82 /*recover parameters: */ 83 parameters->FindParam(& analysis_type,AnalysisTypeEnum);83 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 84 84 85 85 /*First, initialize vec_new_shelf_nodes, which will track which nodes have changed status: */ 86 numnods=nodes->NumberOfNodes( analysis_type);86 numnods=nodes->NumberOfNodes(configuration_type); 87 87 vec_potential_sheet_ungrounding=NewVec(numnods); 88 88 … … 270 270 int i; 271 271 Element* element=NULL; 272 int analysis_type;272 int configuration_type; 273 273 int numnods; 274 274 Vec vec_new_shelf_nodes=NULL; … … 280 280 281 281 /*recover parameters: */ 282 parameters->FindParam(& analysis_type,AnalysisTypeEnum);282 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 283 283 284 284 /*First, initialize vec_new_shelf_nodes, which will track which nodes have changed status: */ 285 numnods=nodes->NumberOfNodes( analysis_type);285 numnods=nodes->NumberOfNodes(configuration_type); 286 286 vec_new_shelf_nodes=NewVec(numnods); 287 287 … … 313 313 } 314 314 /*}}}*/ 315 Vec CreateNodesOnIceShelf(Nodes* nodes,int analysis_type){ //{{{1315 Vec CreateNodesOnIceShelf(Nodes* nodes,int configuration_type){ //{{{1 316 316 317 317 /*output: */ … … 325 325 326 326 /*First, initialize nodes_on_iceshelf, which will track which nodes have changed status: */ 327 numnods=nodes->NumberOfNodes( analysis_type);327 numnods=nodes->NumberOfNodes(configuration_type); 328 328 nodes_on_iceshelf=NewVec(numnods); 329 329 … … 331 331 for(i=0;i<nodes->Size();i++){ 332 332 node=(Node*)nodes->GetObjectByOffset(i); 333 if(node->InAnalysis( analysis_type)){333 if(node->InAnalysis(configuration_type)){ 334 334 if(node->IsOnShelf()){ 335 335 VecSetValue(nodes_on_iceshelf,node->Sid(),1.0,INSERT_VALUES); -
issm/trunk/src/c/modules/NodesDofx/NodesDofx.cpp
r5772 r8816 10 10 #include "../../EnumDefinitions/EnumDefinitions.h" 11 11 12 void NodesDofx(Nodes* nodes, Parameters* parameters,int analysis_type){12 void NodesDofx(Nodes* nodes, Parameters* parameters,int configuration_type){ 13 13 14 14 int noerr=1; … … 17 17 18 18 /*Do we have any nodes for this analysis type? :*/ 19 if(nodes->NumberOfNodes( analysis_type)){19 if(nodes->NumberOfNodes(configuration_type)){ 20 20 21 21 /*Ensure that only for each cpu, the partition border nodes only will be taken into account once 22 22 * across the cluster. To do so, we flag all the clone nodes: */ 23 nodes->FlagClones( analysis_type);23 nodes->FlagClones(configuration_type); 24 24 25 25 /*Go through all nodes, and build degree of freedom lists. Each node gets a fixed number of dofs. When 26 26 *a node has already been distributed dofs on one cpu, all other cpus with the same node cannot distribute it 27 27 *anymore. Use clone field to be sure of that: */ 28 nodes->DistributeDofs( analysis_type,GsetEnum);29 nodes->DistributeDofs( analysis_type,FsetEnum);30 nodes->DistributeDofs( analysis_type,SsetEnum);28 nodes->DistributeDofs(configuration_type,GsetEnum); 29 nodes->DistributeDofs(configuration_type,FsetEnum); 30 nodes->DistributeDofs(configuration_type,SsetEnum); 31 31 } 32 32 -
issm/trunk/src/c/modules/Reducevectorgtofx/Reducevectorgtofx.cpp
r8799 r8816 13 13 /*variables: */ 14 14 int i; 15 int analysis_type;16 15 int configuration_type; 17 16 int fsize; … … 20 19 /*first figure out fsize: */ 21 20 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 22 parameters->FindParam(&analysis_type,AnalysisTypeEnum);23 21 fsize=nodes->NumberOfDofs(configuration_type,FsetEnum); 22 printf("%s\n",EnumToStringx(configuration_type)); 24 23 25 24 if(fsize==0){ … … 30 29 uf=NewVec(fsize); 31 30 32 if(nodes->NumberOfNodes( analysis_type)){31 if(nodes->NumberOfNodes(configuration_type)){ 33 32 34 33 /*serialize ug, so nodes can index into it: */ … … 41 40 42 41 /*Check that this node corresponds to our analysis currently being carried out: */ 43 if (node->InAnalysis( analysis_type)){42 if (node->InAnalysis(configuration_type)){ 44 43 45 44 /*For this object, reduce values for enum set Fset: */ … … 47 46 } 48 47 } 49 50 48 } 49 /*Assemble vector: */ 50 VecAssemblyBegin(uf); 51 VecAssemblyEnd(uf); 51 52 } 52 53 /*Assemble vector: */54 VecAssemblyBegin(uf);55 VecAssemblyEnd(uf);56 57 53 58 54 /*Free ressources:*/ -
issm/trunk/src/c/modules/Reducevectorgtosx/Reducevectorgtosx.cpp
r8799 r8816 13 13 /*variables: */ 14 14 int i; 15 int analysis_type;16 15 int configuration_type; 17 16 int ssize; … … 20 19 /*first figure out ssize: */ 21 20 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 22 parameters->FindParam(&analysis_type,AnalysisTypeEnum);23 21 ssize=nodes->NumberOfDofs(configuration_type,SsetEnum); 24 22 … … 30 28 ys=NewVec(ssize); 31 29 32 if(nodes->NumberOfNodes( analysis_type)){30 if(nodes->NumberOfNodes(configuration_type)){ 33 31 34 32 /*serialize yg, so nodes can index into it: */ … … 41 39 42 40 /*Check that this node corresponds to our analysis currently being carried out: */ 43 if (node->InAnalysis( analysis_type)){41 if (node->InAnalysis(configuration_type)){ 44 42 45 43 /*For this object, reduce values for enum set Fset: */ … … 48 46 } 49 47 } 48 /*Assemble vector: */ 49 VecAssemblyBegin(ys); 50 VecAssemblyEnd(ys); 50 51 } 51 52 /*Assemble vector: */53 VecAssemblyBegin(ys);54 VecAssemblyEnd(ys);55 52 56 53 /*Free ressources:*/ -
issm/trunk/src/c/modules/UpdateSpcsx/UpdateSpcsx.cpp
r8799 r8816 13 13 14 14 int i; 15 int analysis_type;15 int configuration_type; 16 16 double* ys_serial=NULL; 17 17 18 18 /*retrieve parameters: */ 19 parameters->FindParam(& analysis_type,AnalysisTypeEnum);19 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 20 20 21 if(nodes->NumberOfNodes( analysis_type)){21 if(nodes->NumberOfNodes(configuration_type)){ 22 22 23 23 /*serialize ys, so nodes can index into it: */ … … 30 30 31 31 /*Check that this node corresponds to our analysis currently being carried out: */ 32 if (node->InAnalysis( analysis_type)){32 if (node->InAnalysis(configuration_type)){ 33 33 34 34 /*For this object, reset values of spc fields in the node: */
Note:
See TracChangeset
for help on using the changeset viewer.