Changeset 17010
- Timestamp:
- 12/05/13 08:25:26 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r17009 r17010 816 816 817 817 /*Intermediaries*/ 818 bool isS IA,isSSA,isL1L2,isHO,isFS;818 bool isSSA,isL1L2,isHO,isFS; 819 819 bool conserve_loads = true; 820 int meshtype,newton;820 int newton; 821 821 822 822 /* recover parameters:*/ 823 femmodel->parameters->FindParam(&isSIA,FlowequationIsSIAEnum);824 823 femmodel->parameters->FindParam(&isSSA,FlowequationIsSSAEnum); 825 824 femmodel->parameters->FindParam(&isL1L2,FlowequationIsL1L2Enum); … … 827 826 femmodel->parameters->FindParam(&isFS,FlowequationIsFSEnum); 828 827 femmodel->parameters->FindParam(&newton,StressbalanceIsnewtonEnum); 829 femmodel->parameters->FindParam(&meshtype,MeshTypeEnum);830 828 831 829 if((isSSA || isHO || isL1L2) ^ isFS){ // ^ = xor … … 842 840 if(VerboseSolution()) _printf0_(" computing coupling between lower order models and FS\n"); 843 841 solutionsequence_FScoupling_nonlinear(femmodel,conserve_loads); 844 }845 846 if (meshtype==Mesh3DEnum && (isSIA || isSSA || isL1L2 || isHO)){847 if(VerboseSolution()) _printf0_(" computing vertical velocities\n");848 femmodel->SetCurrentConfiguration(StressbalanceVerticalAnalysisEnum);849 solutionsequence_linear(femmodel);850 842 } 851 843 -
issm/trunk-jpl/src/c/analyses/StressbalanceVerticalAnalysis.cpp
r17005 r17010 4 4 #include "../shared/shared.h" 5 5 #include "../modules/modules.h" 6 #include "../solutionsequences/solutionsequences.h" 6 7 7 8 /*Model processing*/ … … 97 98 /*Finite Element Analysis*/ 98 99 void StressbalanceVerticalAnalysis::Core(FemModel* femmodel){/*{{{*/ 99 _error_("not implemented"); 100 101 if(VerboseSolution()) _printf0_(" computing vertical velocities\n"); 102 femmodel->SetCurrentConfiguration(StressbalanceVerticalAnalysisEnum); 103 solutionsequence_linear(femmodel); 100 104 }/*}}}*/ 101 105 ElementVector* StressbalanceVerticalAnalysis::CreateDVector(Element* element){/*{{{*/ -
issm/trunk-jpl/src/c/cores/stressbalance_core.cpp
r17009 r17010 73 73 } 74 74 75 /*Compute vertical velocities*/ 76 if (meshtype==Mesh3DEnum && (isSIA || isSSA || isL1L2 || isHO)){ 77 analysis = new StressbalanceVerticalAnalysis(); 78 analysis->Core(femmodel); 79 delete analysis; 80 } 81 82 75 83 if(save_results){ 76 84 if(VerboseSolution()) _printf0_(" saving results\n");
Note:
See TracChangeset
for help on using the changeset viewer.