Changeset 8809
- Timestamp:
- 07/06/11 08:28:10 (14 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Container/Nodes.cpp
r8224 r8809 203 203 } 204 204 /*}}}*/ 205 /*FUNCTION Nodes::FlagNodeSets{{{1*/206 void Nodes::FlagNodeSets(Vec pv_g, Vec pv_f, Vec pv_s,int analysis_type){207 208 int i;209 210 for(i=0;i<this->Size();i++){211 212 Node* node=(Node*)this->GetObjectByOffset(i);213 214 /*Check that this node corresponds to our analysis currently being carried out: */215 if (node->InAnalysis(analysis_type)){216 217 /*Plug set values intp our 4 set vectors: */218 node->CreateVecSets(pv_g,pv_f,pv_s);219 }220 }221 222 /*Assemble: */223 VecAssemblyBegin(pv_g);224 VecAssemblyEnd(pv_g);225 226 VecAssemblyBegin(pv_f);227 VecAssemblyEnd(pv_f);228 229 VecAssemblyBegin(pv_s);230 VecAssemblyEnd(pv_s);231 232 }233 /*}}}*/234 205 /*FUNCTION Nodes::MaxNumDofs{{{1*/ 235 206 int Nodes::MaxNumDofs(int analysis_type,int setenum){ -
issm/trunk/src/c/Container/Nodes.h
r6411 r8809 22 22 void DistributeDofs(int analysis_type,int SETENUM); 23 23 void FlagClones(int analysis_type); 24 void FlagNodeSets(Vec pv_g, Vec pv_f, Vec pv_s,int analysis_type);25 24 int MaxNumDofs(int analysis_type,int setenum); 26 25 int NumberOfDofs(int analysis_type,int setenum); -
issm/trunk/src/c/modules/Mergesolutionfromftogx/Mergesolutionfromftogx.cpp
r8799 r8809 13 13 /*intermediary: */ 14 14 int configuration_type; 15 int analysis_type;16 15 int gsize,fsize,ssize; 17 16 … … 21 20 /*first, get gsize, fsize and ssize: */ 22 21 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 23 parameters->FindParam(&analysis_type,AnalysisTypeEnum);24 22 gsize=nodes->NumberOfDofs(configuration_type,GsetEnum); 25 23 fsize=nodes->NumberOfDofs(configuration_type,FsetEnum); -
issm/trunk/src/c/modules/VecMergex/VecMergex.cpp
r8799 r8809 14 14 /*variables: */ 15 15 int i; 16 int analysis_type,configuration_type;16 int configuration_type; 17 17 double* uf_serial=NULL; 18 18 19 19 /*retrieve parameters: */ 20 parameters->FindParam(&analysis_type,AnalysisTypeEnum);21 20 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 22 21 … … 24 23 VecToMPISerial(&uf_serial,uf); 25 24 26 /*Do we have any nodes for this analysis type? :*/27 if(nodes->NumberOfNodes( analysis_type)){25 /*Do we have any nodes for this configuration? :*/ 26 if(nodes->NumberOfNodes(configuration_type)){ 28 27 29 28 /*yes. Go through all nodes, and ask them to retrieve values from uf, and plug them into ug: */ … … 32 31 Node* node=(Node*)nodes->GetObjectByOffset(i); 33 32 34 /*Check that this node corresponds to our analysiscurrently being carried out: */35 if (node->InAnalysis( analysis_type)){33 /*Check that this node corresponds to our configuration currently being carried out: */ 34 if (node->InAnalysis(configuration_type)){ 36 35 37 36 /*For this object, merge values for enum set SetEnum: */
Note:
See TracChangeset
for help on using the changeset viewer.