Changeset 17463
- Timestamp:
- 03/18/14 15:31:50 (11 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r17459 r17463 853 853 femmodel->parameters->FindParam(&islevelset,TransientIslevelsetEnum); 854 854 if(islevelset){ 855 _printf0_(" Updating active and non-active nodes for ThermalAnalysis \n");856 855 SetActiveNodesLSMx(femmodel); 857 856 } -
issm/trunk-jpl/src/c/analyses/ExtrapolationAnalysis.cpp
r17429 r17463 12 12 void ExtrapolationAnalysis::UpdateParameters(Parameters* parameters,IoModel* iomodel,int solution_enum,int analysis_enum){/*{{{*/ 13 13 //do nothing for now 14 return; 14 15 } 15 16 /*}}}*/ … … 44 45 void ExtrapolationAnalysis::CreateConstraints(Constraints* constraints,IoModel* iomodel){/*{{{*/ 45 46 // do nothing for now 47 return; 46 48 } 47 49 /*}}}*/ 48 50 void ExtrapolationAnalysis::CreateLoads(Loads* loads, IoModel* iomodel){/*{{{*/ 49 // do nothing for now 51 // do nothing for now 52 return; 50 53 }/*}}}*/ 51 54 … … 70 73 femmodel->RequestedOutputsx(&femmodel->results,&outputs[0],2); 71 74 } 72 73 75 }/*}}}*/ 74 76 ElementVector* ExtrapolationAnalysis::CreateDVector(Element* element){/*{{{*/ … … 348 350 this->SetConstraintsOnIce(element); 349 351 } 350 351 }/*}}}*/ 352 }/*}}}*/ -
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r17429 r17463 11 11 /*}}}*/ 12 12 void LevelsetAnalysis::UpdateParameters(Parameters* parameters,IoModel* iomodel,int solution_enum,int analysis_enum){/*{{{*/ 13 // parameters->AddObject(iomodel->CopyConstantObject(FlowequationIsSIAEnum));13 return; 14 14 } 15 15 /*}}}*/ … … 34 34 iomodel->FetchDataToInput(elements,VyEnum); 35 35 iomodel->FetchDataToInput(elements,MasstransportCalvingrateEnum); 36 37 if(iomodel->meshtype==Mesh3DEnum){38 iomodel->FetchDataToInput(elements,MeshElementonbedEnum);39 iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum);40 }41 36 } 42 37 /*}}}*/ … … 49 44 /*}}}*/ 50 45 void LevelsetAnalysis::CreateConstraints(Constraints* constraints,IoModel* iomodel){/*{{{*/ 51 52 /*Intermediary*/ 53 54 /*Fetch parameters: */ 55 46 return; 56 47 } 57 48 /*}}}*/ 58 49 void LevelsetAnalysis::CreateLoads(Loads* loads, IoModel* iomodel){/*{{{*/ 59 60 /*Intermediary*/ 61 62 /*Fetch parameters: */ 63 50 return; 64 51 }/*}}}*/ 65 52 … … 73 60 /*parameters: */ 74 61 bool save_results; 75 76 62 femmodel->parameters->FindParam(&save_results,SaveResultsEnum); 77 63 … … 525 511 return fabs(a[0]*b[1]-a[1]*b[0])/norm_b; 526 512 }/*}}}*/ 527 -
issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp
r17430 r17463 755 755 femmodel->parameters->FindParam(&islevelset,TransientIslevelsetEnum); 756 756 if(islevelset){ 757 _printf0_(" Updating active and non-active nodes for MasstransportAnalysis \n");758 757 SetActiveNodesLSMx(femmodel); 759 758 } -
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r17430 r17463 1038 1038 femmodel->parameters->FindParam(&islevelset,TransientIslevelsetEnum); 1039 1039 if(islevelset){ 1040 _printf0_(" Updating active and non-active nodes for StressbalanceAnalysis \n");1041 1040 SetActiveNodesLSMx(femmodel); 1042 1041 } -
issm/trunk-jpl/src/c/analyses/StressbalanceSIAAnalysis.cpp
r17431 r17463 580 580 femmodel->parameters->FindParam(&islevelset,TransientIslevelsetEnum); 581 581 if(islevelset){ 582 _printf0_(" Updating active and non-active nodes for StressbalanceSIAAnalysis \n");583 582 SetActiveNodesLSMx(femmodel); 584 583 } -
issm/trunk-jpl/src/c/analyses/ThermalAnalysis.cpp
r17459 r17463 717 717 femmodel->parameters->FindParam(&islevelset,TransientIslevelsetEnum); 718 718 if(islevelset){ 719 _printf0_(" Updating active and non-active nodes for ThermalAnalysis \n");720 719 SetActiveNodesLSMx(femmodel); 721 720 } -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r17446 r17463 2912 2912 /*If the level set has always same sign, there is no ice front here*/ 2913 2913 iszerols = false; 2914 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){ 2915 iszerols = true; 2914 if(IsIceInElement()){ 2915 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){ 2916 iszerols = true; 2917 } 2916 2918 } 2917 2919 return iszerols; -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r17449 r17463 2347 2347 /*If the level set is awlays <0, there is no ice front here*/ 2348 2348 iszerols= false; 2349 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){ 2350 iszerols = true; 2349 if(IsIceInElement()){ 2350 if(ls[0]*ls[1]<0. || ls[0]*ls[2]<0. || (ls[0]*ls[1]*ls[2]==0. && ls[0]*ls[1]+ls[0]*ls[2]+ls[1]*ls[2]<=0.)){ 2351 iszerols = true; 2352 } 2351 2353 } 2352 2354 -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r17394 r17463 407 407 408 408 /*start module: */ 409 if(VerboseModule()) _printf0_(" Updating constraints for time: " << time << "\n");409 if(VerboseModule()) _printf0_(" Updating constraints and active domain of analysis " << EnumToStringx(analysis_type) << " for time: " << time << "\n"); 410 410 411 411 Analysis* analysis= EnumToAnalysis(analysis_type); -
issm/trunk-jpl/src/c/cores/transient_core.cpp
r17442 r17463 93 93 } 94 94 95 // if(islevelset){96 // /* set distance on elements intersected by zero level set */97 // LevelsetAnalysis* lsfanalysis = new LevelsetAnalysis();98 // lsfanalysis->SetDistanceOnIntersectedElements(femmodel);99 // delete lsfanalysis;100 // }101 102 95 while(time < finaltime - (yts*DBL_EPSILON)){ //make sure we run up to finaltime. 103 96 -
issm/trunk-jpl/src/c/modules/SetActiveNodesLSMx/SetActiveNodesLSMx.cpp
r17450 r17463 49 49 } 50 50 51 /* if solving 2d problem on vertically extende mesh, solve on basal layer only*/ 51 52 if(meshtype!=Mesh2DhorizontalEnum){ 52 53 femmodel->parameters->FindParam(&analysis_type,AnalysisTypeEnum); … … 97 98 /* Intermediaries */ 98 99 int i; 100 99 101 /*Initialize vector with number of vertices*/ 100 102 int numvertices=femmodel->vertices->NumberOfVertices();
Note:
See TracChangeset
for help on using the changeset viewer.