Changeset 27075
- Timestamp:
- 06/17/22 15:53:57 (3 years ago)
- Location:
- issm/branches/trunk-larour-SLPS2022/src/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-SLPS2022/src/c/analyses/SealevelchangeAnalysis.cpp
r27071 r27075 42 42 /*external solidearthsolution: solid-Earth model*/ 43 43 iomodel->FetchData(&isexternal,"md.solidearth.isexternal"); 44 45 44 if(isexternal){ 46 45 … … 632 631 /*Resolve Mmes using the modelid, if necessary: meaning if we are running a transient model and that UQ computations have not been triggered:*/ 633 632 femmodel->parameters->FindParam(&isuq,QmuIsdakotaEnum); 634 _printf_("hello0\n");635 633 if (!isuq && femmodel->inputs->GetInputObjectEnum(SolidearthExternalDisplacementEastRateEnum)==DatasetInputEnum){ 636 _printf_("hello1\n");637 638 634 femmodel->parameters->FindParam(&modelid,SolidearthExternalModelidEnum); 639 635 640 636 /*replace dataset of forcings with only one, the modelid'th:*/ 641 MmeToInputFromIdx(femmodel->inputs,femmodel->elements, modelid-1,SolidearthExternalDisplacementNorthRateEnum, P1Enum);642 MmeToInputFromIdx(femmodel->inputs,femmodel->elements, modelid-1,SolidearthExternalDisplacementEastRateEnum, P1Enum);643 MmeToInputFromIdx(femmodel->inputs,femmodel->elements, modelid-1,SolidearthExternalDisplacementUpRateEnum, P1Enum);644 MmeToInputFromIdx(femmodel->inputs,femmodel->elements, modelid-1,SolidearthExternalGeoidRateEnum, P1Enum);637 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters, modelid-1,SolidearthExternalDisplacementNorthRateEnum, P1Enum); 638 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalDisplacementEastRateEnum, P1Enum); 639 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalDisplacementUpRateEnum, P1Enum); 640 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalGeoidRateEnum, P1Enum); 645 641 646 642 } -
issm/branches/trunk-larour-SLPS2022/src/c/classes/FemModel.cpp
r26890 r27075 2112 2112 void FemModel::MmeToInputFromId(int id, int rootenum, int interpolationenum){ /*{{{*/ 2113 2113 2114 MmeToInputFromIdx(this->inputs,this->elements, id,rootenum,interpolationenum);2114 MmeToInputFromIdx(this->inputs,this->elements,this->parameters,id,rootenum,interpolationenum); 2115 2115 2116 2116 } //}}} -
issm/branches/trunk-larour-SLPS2022/src/c/cores/sealevelchange_core.cpp
r27066 r27075 205 205 TransferForcing(femmodel,DeltaTwsEnum); 206 206 207 /*transfer external forcings back to Earth:*/208 /*TransferSealevel(femmodel,BedEnum);209 TransferSealevel(femmodel,SealevelEnum);210 if(horiz){211 TransferSealevel(femmodel,BedEastEnum);212 TransferSealevel(femmodel,BedNorthEnum);213 }*/214 207 } 215 208 … … 272 265 /*only run if grd was requested, if we are the earth, and we have reached 273 266 * the necessary number of time steps dictated by :*/ 274 if(!grd) return;267 if(!grd)return; 275 268 if(count!=frequency)return; 276 269 femmodel->parameters->FindParam(&iscoupling,IsSlcCouplingEnum); … … 606 599 femmodel->results->AddResult(new GenericExternalResult<IssmDouble*>(femmodel->results->Size()+1,AreaeEnum,areae,nel,1,1,1)); 607 600 #endif 601 602 //Specialty code: {{{ 603 bool isuq=0; 604 IssmDouble modelid=0; 605 606 /*Resolve Mmes using the modelid, if necessary: meaning if we are running a transient model and that UQ computations have not been triggered:*/ 607 femmodel->parameters->FindParam(&isuq,QmuIsdakotaEnum); 608 if(!isuq){ 609 610 /*Deal with solid earth: */ 611 if (femmodel->inputs->Exist(SolidearthExternalDisplacementEastRateEnum) && femmodel->inputs->GetInputObjectEnum(SolidearthExternalDisplacementEastRateEnum)==DatasetInputEnum){ 612 femmodel->parameters->FindParam(&modelid,SolidearthExternalModelidEnum); 613 614 /*replace dataset of forcings with only one, the modelid'th:*/ 615 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalDisplacementNorthRateEnum, P1Enum); 616 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalDisplacementEastRateEnum, P1Enum); 617 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalDisplacementUpRateEnum, P1Enum); 618 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,SolidearthExternalGeoidRateEnum, P1Enum); 619 620 } 621 /*Deal with ocean: */ 622 if (femmodel->inputs->Exist(OceantransportSpcbottompressureEnum) && femmodel->inputs->GetInputObjectEnum(OceantransportSpcbottompressureEnum)==DatasetInputEnum){ 623 femmodel->parameters->FindParam(&modelid,DslModelidEnum); 624 625 /*replace dataset of forcings with only one, the modelid'th:*/ 626 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,OceantransportSpcbottompressureEnum, P1Enum); 627 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,OceantransportSpcdslEnum, P1Enum); 628 MmeToInputFromIdx(femmodel->inputs,femmodel->elements,femmodel->parameters,modelid-1,OceantransportSpcstrEnum, P0Enum); 629 } 630 } /*}}}*/ 608 631 609 632 return; -
issm/branches/trunk-larour-SLPS2022/src/c/modules/MmeToInputFromIdx/MmeToInputFromIdx.cpp
r26468 r27075 16 16 #include "./MmeToInputFromIdx.h" 17 17 18 void MmeToInputFromIdx(Inputs* inputs, Elements* elements, int id, int rootenum, int interpolationenum){18 void MmeToInputFromIdx(Inputs* inputs, Elements* elements, Parameters* parameters, int id, int rootenum, int interpolationenum){ 19 19 20 20 TransientInput* transientinput = NULL; … … 33 33 transientinput->GetAllTimes(×,&N); 34 34 inputs->SetTransientInput(DummyEnum,times,N); 35 transientinput2 = inputs->GetTransientInput(DummyEnum); 35 transientinput2 = inputs->GetTransientInput(DummyEnum); transientinput2->Configure(parameters); 36 36 37 37 for(Object* & object : elements->objects){ -
issm/branches/trunk-larour-SLPS2022/src/c/modules/MmeToInputFromIdx/MmeToInputFromIdx.h
r26047 r27075 7 7 8 8 /* local prototypes: */ 9 void MmeToInputFromIdx(Inputs* inputs, Elements* elements, int id, int rootenum, int interpolationenum);9 void MmeToInputFromIdx(Inputs* inputs, Elements* elements, Parameters* parameters, int id, int rootenum, int interpolationenum); 10 10 11 11 #endif
Note:
See TracChangeset
for help on using the changeset viewer.