Changeset 5420
- Timestamp:
- 08/19/10 11:45:33 (15 years ago)
- Location:
- issm/trunk/src/c/modules
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp
r5320 r5420 19 19 Node* node=NULL; 20 20 Material* material=NULL; 21 int analysis_type;21 int configuration_type; 22 22 23 23 /*Get analysis type: */ 24 parameters->FindParam(& analysis_type,AnalysisTypeEnum);24 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 25 25 26 26 //_printf_(" Configuring elements...\n"); … … 32 32 for (i=0;i<loads->Size();i++){ 33 33 load=(Load*)loads->GetObjectByOffset(i); 34 if (load->InAnalysis( analysis_type)){34 if (load->InAnalysis(configuration_type)){ 35 35 load->Configure(elements,loads,nodes,vertices,materials,parameters); 36 36 } … … 39 39 for (i=0;i<nodes->Size();i++){ 40 40 node=(Node*)nodes->GetObjectByOffset(i); 41 if(node->InAnalysis( analysis_type)){41 if(node->InAnalysis(configuration_type)){ 42 42 node->Configure(nodes,vertices); 43 43 } -
issm/trunk/src/c/modules/PenaltyConstraintsx/MeltingConstraints.cpp
r4458 r5420 11 11 #include "./PenaltyConstraintsLocal.h" 12 12 13 void MeltingConstraints(Loads* loads, int* pconverged, int* pnum_unstable_constraints,int analysis_type){13 void MeltingConstraints(Loads* loads, int* pconverged, int* pnum_unstable_constraints,int configuration_type){ 14 14 15 15 int i; … … 26 26 Object* object=(Object*)loads->GetObjectByOffset(i); 27 27 Load* load=(Load*)object; 28 if(load->InAnalysis( analysis_type)){28 if(load->InAnalysis(configuration_type)){ 29 29 if(object->Enum()==PengridEnum){ 30 30 -
issm/trunk/src/c/modules/PenaltyConstraintsx/MeltingIsPresent.cpp
r4458 r5420 11 11 #include "./PenaltyConstraintsLocal.h" 12 12 13 int MeltingIsPresent(Loads* loads,int analysis_type){13 int MeltingIsPresent(Loads* loads,int configuration_type){ 14 14 15 15 int i; … … 20 20 Object* object=(Object*)loads->GetObjectByOffset(i); 21 21 Load* load=(Load*)object; 22 if(load->InAnalysis( analysis_type)){22 if(load->InAnalysis(configuration_type)){ 23 23 if (object->Enum()==PengridEnum){ 24 24 found=1; -
issm/trunk/src/c/modules/PenaltyConstraintsx/RiftConstraints.cpp
r5160 r5420 11 11 12 12 /*current module: */ 13 /*RiftIsPresent(Loads* loads,int analysis_type){{{1*/14 int RiftIsPresent(Loads* loads,int analysis_type){13 /*RiftIsPresent(Loads* loads,int configuration_type){{{1*/ 14 int RiftIsPresent(Loads* loads,int configuration_type){ 15 15 16 16 … … 23 23 for (i=0;i<loads->Size();i++){ 24 24 Load* load=(Load*)loads->GetObjectByOffset(i); 25 if(load->InAnalysis( analysis_type)){25 if(load->InAnalysis(configuration_type)){ 26 26 if(RiftfrontEnum==loads->GetEnum(i)){ 27 27 found=1; … … 40 40 } 41 41 /*}}}*/ 42 /*RiftConstraints(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int analysis_type){{{1*/43 void RiftConstraints(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int analysis_type){42 /*RiftConstraints(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){{{1*/ 43 void RiftConstraints(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){ 44 44 45 45 int num_unstable_constraints=0; … … 47 47 int potential; 48 48 49 RiftConstrain(&num_unstable_constraints,loads, analysis_type);49 RiftConstrain(&num_unstable_constraints,loads,configuration_type); 50 50 if(num_unstable_constraints==0)converged=1; 51 51 52 if(RiftIsFrozen(loads, analysis_type)){52 if(RiftIsFrozen(loads,configuration_type)){ 53 53 converged=1; 54 54 num_unstable_constraints=0; … … 56 56 else if(num_unstable_constraints<=min_mechanical_constraints){ 57 57 _printf_(" freezing constraints\n"); 58 RiftFreezeConstraints(loads, analysis_type);58 RiftFreezeConstraints(loads,configuration_type); 59 59 } 60 60 … … 64 64 } 65 65 /*}}}*/ 66 /*RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int analysis_type){{{1*/67 void RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int analysis_type){66 /*RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int configuration_type){{{1*/ 67 void RiftConstrain(int* pnum_unstable_constraints,Loads* loads,int configuration_type){ 68 68 69 69 int i; … … 83 83 84 84 load=(Load*)loads->GetObjectByOffset(i); 85 if(load->InAnalysis( analysis_type)){85 if(load->InAnalysis(configuration_type)){ 86 86 87 87 riftfront=(Riftfront*)load; … … 105 105 } 106 106 /*}}}*/ 107 /*RiftIsFrozen(Loads* loads,int analysis_type){{{1*/108 int RiftIsFrozen(Loads* loads,int analysis_type){107 /*RiftIsFrozen(Loads* loads,int configuration_type){{{1*/ 108 int RiftIsFrozen(Loads* loads,int configuration_type){ 109 109 110 110 int i; … … 122 122 123 123 load=(Load*)loads->GetObjectByOffset(i); 124 if(load->InAnalysis( analysis_type)){124 if(load->InAnalysis(configuration_type)){ 125 125 126 126 riftfront=(Riftfront*)load; … … 143 143 } 144 144 /*}}}*/ 145 /*RiftFreezeConstraints(Loads* loads,int analysis_type){{{1*/146 void RiftFreezeConstraints(Loads* loads,int analysis_type){145 /*RiftFreezeConstraints(Loads* loads,int configuration_type){{{1*/ 146 void RiftFreezeConstraints(Loads* loads,int configuration_type){ 147 147 148 148 int i; … … 158 158 159 159 load=(Load*)loads->GetObjectByOffset(i); 160 if(load->InAnalysis( analysis_type)){160 if(load->InAnalysis(configuration_type)){ 161 161 162 162 riftfront=(Riftfront*)load; -
issm/trunk/src/c/modules/PenaltySystemMatricesx/PenaltySystemMatricesx.cpp
r4573 r5420 16 16 Load* load=NULL; 17 17 18 int analysis_type;18 int configuration_type; 19 19 20 20 /*retrive parameters: */ 21 parameters->FindParam(& analysis_type,AnalysisTypeEnum);21 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 22 22 23 23 /*Now, figure out maximum value of K_gg, so that we can penalize it correctly: */ … … 30 30 for (i=0;i<loads->Size();i++){ 31 31 load=(Load*)loads->GetObjectByOffset(i); 32 if (load->InAnalysis( analysis_type)) load->PenaltyCreateKMatrix(Kgg,kmax);32 if (load->InAnalysis(configuration_type)) load->PenaltyCreateKMatrix(Kgg,kmax); 33 33 } 34 34 … … 45 45 for (i=0;i<loads->Size();i++){ 46 46 load=(Load*)loads->GetObjectByOffset(i); 47 if (load->InAnalysis( analysis_type)) load->PenaltyCreatePVector(pg,kmax);47 if (load->InAnalysis(configuration_type)) load->PenaltyCreatePVector(pg,kmax); 48 48 } 49 49 -
issm/trunk/src/c/modules/SystemMatricesx/SystemMatricesx.cpp
r5114 r5420 38 38 39 39 /*Get numberofdofspernode: */ 40 numberofdofspernode=nodes->MaxNumDofs( analysis_type);40 numberofdofspernode=nodes->MaxNumDofs(configuration_type); 41 41 42 42 /*Compute stiffness matrix*/ … … 52 52 } 53 53 54 /*Fill stiffness matrix from loads if loads have the current analysis_type: */54 /*Fill stiffness matrix from loads if loads have the current configuration_type: */ 55 55 for (i=0;i<loads->Size();i++){ 56 56 load=(Load*)loads->GetObjectByOffset(i); 57 if (load->InAnalysis( analysis_type)) load->CreateKMatrix(Kgg);57 if (load->InAnalysis(configuration_type)) load->CreateKMatrix(Kgg); 58 58 } 59 59 … … 76 76 } 77 77 78 /*Fill right hand side from loads if loads have the current analysis_type: */78 /*Fill right hand side from loads if loads have the current configuration_type: */ 79 79 for (i=0;i<loads->Size();i++){ 80 80 load=(Load*)loads->GetObjectByOffset(i); 81 if (load->InAnalysis( analysis_type)) load->CreatePVector(pg);81 if (load->InAnalysis(configuration_type)) load->CreatePVector(pg); 82 82 } 83 83
Note:
See TracChangeset
for help on using the changeset viewer.