Changeset 13909
- Timestamp:
- 11/08/12 10:20:46 (12 years ago)
- Location:
- issm/trunk-jpl/src/c/classes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/FemModel.cpp
r13902 r13909 342 342 int fsize,ssize,flocalsize,slocalsize; 343 343 int connectivity, numberofdofspernode; 344 int analysis_type,configuration_type;344 int configuration_type; 345 345 int m,n,M,N; 346 346 int *d_nnz = NULL; … … 357 357 358 358 /*retrieve parameters: */ 359 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum);360 359 this->parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 361 360 this->parameters->FindParam(&connectivity,MeshAverageVertexConnectivityEnum); … … 364 363 fsize = this->nodes->NumberOfDofs(configuration_type,FsetEnum); 365 364 ssize = this->nodes->NumberOfDofs(configuration_type,SsetEnum); 366 flocalsize = this->nodes->NumberOfDofsLocal( analysis_type,FsetEnum);367 slocalsize = this->nodes->NumberOfDofsLocal( analysis_type,SsetEnum);365 flocalsize = this->nodes->NumberOfDofsLocal(configuration_type,FsetEnum); 366 slocalsize = this->nodes->NumberOfDofsLocal(configuration_type,SsetEnum); 368 367 369 368 numberofdofspernode=this->nodes->MaxNumDofs(configuration_type,GsetEnum); … … 408 407 /*Intermediary*/ 409 408 int i,j,k,index,offset,count; 410 int analysis_type,configuration_type;409 int configuration_type; 411 410 int d_nz,o_nz; 412 411 Element *element = NULL; … … 421 420 422 421 /*retrive parameters: */ 423 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum);424 422 this->parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 425 423 426 424 /*Get vector size and number of nodes*/ 427 int numnodes = nodes->NumberOfNodes( analysis_type);425 int numnodes = nodes->NumberOfNodes(configuration_type); 428 426 int numberofdofspernode = nodes->MaxNumDofs(configuration_type,GsetEnum); 429 int M = nodes->NumberOfDofs( analysis_type,set1enum);430 int N = nodes->NumberOfDofs( analysis_type,set2enum);431 int m = nodes->NumberOfDofsLocal( analysis_type,set1enum);432 int n = nodes->NumberOfDofsLocal( analysis_type,set2enum);427 int M = nodes->NumberOfDofs(configuration_type,set1enum); 428 int N = nodes->NumberOfDofs(configuration_type,set2enum); 429 int m = nodes->NumberOfDofsLocal(configuration_type,set1enum); 430 int n = nodes->NumberOfDofsLocal(configuration_type,set2enum); 433 431 int numnodesperobject = elements->MaxNumNodes(); 434 432 … … 471 469 for(i=0;i<nodes->Size();i++){ 472 470 Node* node=dynamic_cast<Node*>(nodes->GetObjectByOffset(i)); 473 if(node->InAnalysis( analysis_type)){471 if(node->InAnalysis(configuration_type)){ 474 472 475 473 /*Reinitialize flags to 0*/ … … 509 507 for(i=0;i<nodes->Size();i++){ 510 508 Node* node=dynamic_cast<Node*>(nodes->GetObjectByOffset(i)); 511 if(node->InAnalysis( analysis_type) && !node->IsClone()){509 if(node->InAnalysis(configuration_type) && !node->IsClone()){ 512 510 for(j=0;j<node->indexing.fsize;j++){ 513 511 _assert_(count<m); -
issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp
r13904 r13909 904 904 /*FUNCTION Penta::GetNumberOfNodes{{{*/ 905 905 int Penta::GetNumberOfNodes(void){ 906 907 if(this->nodes==NULL) return 0; 906 908 907 909 switch(this->element_type){ -
issm/trunk-jpl/src/c/classes/objects/Elements/PentaHook.cpp
r13622 r13909 70 70 void PentaHook::SetHookNodes(int* node_ids,int analysis_counter){ 71 71 this->hnodes[analysis_counter]= new Hook(node_ids,6); 72 73 72 } 74 73 /*}}}*/ -
issm/trunk-jpl/src/c/classes/objects/Elements/PentaHook.h
r13623 r13909 13 13 14 14 public: 15 int numanalyses;//number of analysis types16 Hook ** hnodes;// 6 nodes for each analysis type17 Hook * hmaterial;// 1 ice material18 Hook * hmatpar;// 1 material parameter19 Hook * hneighbors;// 2 elements, first down, second up15 int numanalyses; //number of analysis types 16 Hook **hnodes; // 6 nodes for each analysis type 17 Hook *hmaterial; // 1 ice material 18 Hook *hmatpar; // 1 material parameter 19 Hook *hneighbors; // 2 elements, first down, second up 20 20 21 /* FUNCTION constructors, destructors {{{*/21 /*constructors, destructors*/ 22 22 PentaHook(); 23 23 PentaHook(int in_numanalyses,int material_id, IoModel* iomodel); 24 24 ~PentaHook(); 25 25 26 void SetHookNodes(int* node_ids,int analysis_counter); 26 27 void SpawnTriaHook(TriaHook* triahook,int* indices); 27 28 void InitHookNeighbors(int* element_ids); 28 /*}}}*/29 29 }; 30 30 -
issm/trunk-jpl/src/c/classes/objects/Elements/Tria.cpp
r13904 r13909 1139 1139 /*FUNCTION Tria::GetNumberOfNodes{{{*/ 1140 1140 int Tria::GetNumberOfNodes(void){ 1141 1142 if(this->nodes==NULL) return 0; 1141 1143 1142 1144 switch(this->element_type){
Note:
See TracChangeset
for help on using the changeset viewer.