Changeset 25465
- Timestamp:
- 08/25/20 11:27:09 (5 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r25454 r25465 312 312 ./cores/levelsetfunctionslope_core.cpp \ 313 313 ./cores/movingfront_core.cpp \ 314 ./cores/groundingline_core.cpp \ 314 315 ./modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp \ 315 316 ./classes/Loads/Riftfront.cpp \ -
issm/trunk-jpl/src/c/cores/cores.h
r25304 r25465 26 26 void levelsetfunctionslope_core(FemModel* femmodel); 27 27 void movingfront_core(FemModel* femmodel); 28 void groundingline_core(FemModel* femmodel); 28 29 void bedslope_core(FemModel* femmodel); 29 30 void meshdeformation_core(FemModel* femmodel); -
issm/trunk-jpl/src/c/cores/esa_core.cpp
r24950 r25465 64 64 65 65 /*early return: */ 66 if( 66 if(!iscoupler & !isesa) return; //we are not interested in being here :) 67 67 68 68 /*In what follows we assume we are all running esa, either in coupled, or uncoupled mode:*/ -
issm/trunk-jpl/src/c/cores/sealevelchange_core.cpp
r25379 r25465 39 39 /*Should we be here?:*/ 40 40 if(!isslr)return; 41 42 /*Verbose: */43 if(VerboseSolution()) _printf0_(" computing sea level rise\n");44 41 45 42 /*Run gia core: */ -
issm/trunk-jpl/src/c/cores/transient_core.cpp
r25464 r25465 221 221 thermal_core(femmodel); 222 222 } 223 223 224 /* Using Hydrology dc coupled we need to compute smb in the hydrology inner time loop*/ 224 225 if(issmb) { … … 232 233 hydrology_core(femmodel); 233 234 femmodel->parameters->FindParam(&hydrology_model,HydrologyModelEnum); 234 if(hydrology_model!=HydrologydcEnum && issmb) smb_core(femmodel);235 if(hydrology_model!=HydrologydcEnum && issmb) smb_core(femmodel); 235 236 } 236 237 … … 260 261 261 262 if(isgroundingline){ 262 263 /*Start profiler*/264 femmodel->profiler->Start(GROUNDINGLINECORE);265 266 263 if(VerboseSolution()) _printf0_(" computing new grounding line position\n"); 267 GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); 268 269 femmodel->parameters->SetParam(MaskOceanLevelsetEnum,InputToExtrudeEnum); 270 extrudefrombase_core(femmodel); 271 femmodel->parameters->SetParam(BaseEnum,InputToExtrudeEnum); 272 extrudefrombase_core(femmodel); 273 femmodel->parameters->SetParam(SurfaceEnum,InputToExtrudeEnum); 274 extrudefrombase_core(femmodel); 275 276 /*Stop profiler*/ 277 femmodel->profiler->Stop(GROUNDINGLINECORE); 278 279 if(save_results){ 280 int outputs[3] = {SurfaceEnum,BaseEnum,MaskOceanLevelsetEnum}; 281 femmodel->RequestedOutputsx(&femmodel->results,&outputs[0],3); 282 } 264 groundingline_core(femmodel); 283 265 } 284 266 … … 296 278 297 279 /*Sea level rise: */ 298 if(isslr) sealevelchange_core(femmodel); 280 if(isslr){ 281 if(VerboseSolution()) _printf0_(" computing sea level rise\n"); 282 sealevelchange_core(femmodel); 283 } 299 284 300 285 }/*}}}*/ -
issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp
r24861 r25465 10 10 void GroundinglineMigrationx(Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters){ 11 11 12 int migration_style,analysis_type; 13 IssmDouble *vertices_potentially_ungrounding = NULL; 14 IssmDouble *phi_ungrounding = NULL; 15 Element *element = NULL; 12 int migration_style; 13 IssmDouble *vertices_potentially_ungrounding = NULL; 14 IssmDouble *phi_ungrounding = NULL; 16 15 17 16 /*retrieve parameters: */ 18 17 parameters->FindParam(&migration_style,GroundinglineMigrationEnum); 19 parameters->FindParam(&analysis_type,AnalysisTypeEnum);20 21 18 if(migration_style==NoneEnum) return; 22 19 23 if(VerboseModule()) _printf0_(" Migrating grounding line \n");20 if(VerboseModule()) _printf0_(" Migrating grounding line based on "<<EnumToStringx(migration_style)<<"\n"); 24 21 25 22 /*Set toolkit to default*/ … … 47 44 /*Migrate grounding line : */ 48 45 for(int i=0;i<elements->Size();i++){ 49 element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));46 Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i)); 50 47 element->MigrateGroundingLine(phi_ungrounding); 51 48 }
Note:
See TracChangeset
for help on using the changeset viewer.