[25834] | 1 | Index: ../trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/shared/Enum/EnumDefinitions.h (revision 25322)
|
---|
| 4 | +++ ../trunk-jpl/src/c/shared/Enum/EnumDefinitions.h (revision 25323)
|
---|
| 5 | @@ -540,7 +540,7 @@
|
---|
| 6 | DrivingStressYEnum,
|
---|
| 7 | DslGlobalAverageThermostericSeaLevelChangeEnum,
|
---|
| 8 | DslSeaSurfaceHeightChangeAboveGeoidEnum,
|
---|
| 9 | - DslSeaWaterPressureChangeAtSeaFloor,
|
---|
| 10 | + DslSeaWaterPressureChangeAtSeaFloorEnum,
|
---|
| 11 | DslStericRateEnum,
|
---|
| 12 | DslDynamicRateEnum,
|
---|
| 13 | GiaMmeNgiaEnum,
|
---|
| 14 | Index: ../trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
|
---|
| 15 | ===================================================================
|
---|
| 16 | --- ../trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp (revision 25322)
|
---|
| 17 | +++ ../trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp (revision 25323)
|
---|
| 18 | @@ -546,6 +546,7 @@
|
---|
| 19 | case DrivingStressYEnum : return "DrivingStressY";
|
---|
| 20 | case DslGlobalAverageThermostericSeaLevelChangeEnum : return "DslGlobalAverageThermostericSeaLevelChange";
|
---|
| 21 | case DslSeaSurfaceHeightChangeAboveGeoidEnum : return "DslSeaSurfaceHeightChangeAboveGeoid";
|
---|
| 22 | + case DslSeaWaterPressureChangeAtSeaFloorEnum : return "DslSeaWaterPressureChangeAtSeaFloor";
|
---|
| 23 | case DslStericRateEnum : return "DslStericRate";
|
---|
| 24 | case DslDynamicRateEnum : return "DslDynamicRate";
|
---|
| 25 | case GiaMmeNgiaEnum : return "GiaMmeNgia";
|
---|
| 26 | Index: ../trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
|
---|
| 27 | ===================================================================
|
---|
| 28 | --- ../trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp (revision 25322)
|
---|
| 29 | +++ ../trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp (revision 25323)
|
---|
| 30 | @@ -558,6 +558,7 @@
|
---|
| 31 | else if (strcmp(name,"DrivingStressY")==0) return DrivingStressYEnum;
|
---|
| 32 | else if (strcmp(name,"DslGlobalAverageThermostericSeaLevelChange")==0) return DslGlobalAverageThermostericSeaLevelChangeEnum;
|
---|
| 33 | else if (strcmp(name,"DslSeaSurfaceHeightChangeAboveGeoid")==0) return DslSeaSurfaceHeightChangeAboveGeoidEnum;
|
---|
| 34 | + else if (strcmp(name,"DslSeaWaterPressureChangeAtSeaFloor")==0) return DslSeaWaterPressureChangeAtSeaFloorEnum;
|
---|
| 35 | else if (strcmp(name,"DslStericRate")==0) return DslStericRateEnum;
|
---|
| 36 | else if (strcmp(name,"DslDynamicRate")==0) return DslDynamicRateEnum;
|
---|
| 37 | else if (strcmp(name,"GiaMmeNgia")==0) return GiaMmeNgiaEnum;
|
---|
| 38 | Index: ../trunk-jpl/src/c/shared/Enum/Enum.vim
|
---|
| 39 | ===================================================================
|
---|
| 40 | --- ../trunk-jpl/src/c/shared/Enum/Enum.vim (revision 25322)
|
---|
| 41 | +++ ../trunk-jpl/src/c/shared/Enum/Enum.vim (revision 25323)
|
---|
| 42 | @@ -544,6 +544,7 @@
|
---|
| 43 | syn keyword cConstant DrivingStressYEnum
|
---|
| 44 | syn keyword cConstant DslGlobalAverageThermostericSeaLevelChangeEnum
|
---|
| 45 | syn keyword cConstant DslSeaSurfaceHeightChangeAboveGeoidEnum
|
---|
| 46 | +syn keyword cConstant DslSeaWaterPressureChangeAtSeaFloorEnum
|
---|
| 47 | syn keyword cConstant DslStericRateEnum
|
---|
| 48 | syn keyword cConstant DslDynamicRateEnum
|
---|
| 49 | syn keyword cConstant GiaMmeNgiaEnum
|
---|
| 50 | Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp
|
---|
| 51 | ===================================================================
|
---|
| 52 | --- ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 25322)
|
---|
| 53 | +++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 25323)
|
---|
| 54 | @@ -5886,7 +5886,7 @@
|
---|
| 55 | this->GetInput2Value(&area,AreaEnum);
|
---|
| 56 |
|
---|
| 57 | /*Retrieve bottom pressure change and average over the element: */
|
---|
| 58 | - Input2* bottompressure_change_input=this->GetInput2(DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 59 | + Input2* bottompressure_change_input=this->GetInput2(DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 60 | if (!bottompressure_change_input)_error_("bottom pressure input needed to compute sea level rise fingerprint!");
|
---|
| 61 | bottompressure_change_input->GetInputAverage(&BP);
|
---|
| 62 |
|
---|
| 63 | @@ -5992,7 +5992,7 @@
|
---|
| 64 |
|
---|
| 65 | /*If bottom pressures are available, retrieve them to load the bedrock:*/
|
---|
| 66 | if(bp_compute_fingerprints){
|
---|
| 67 | - Input2* bottompressure_change_input=this->GetInput2(DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 68 | + Input2* bottompressure_change_input=this->GetInput2(DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 69 | if (!bottompressure_change_input)_error_("bottom pressure input needed to compute sea level rise fingerprint!");
|
---|
| 70 | bottompressure_change_input->GetInputAverage(&BP);
|
---|
| 71 |
|
---|
| 72 | Index: ../trunk-jpl/src/c/analyses/SealevelriseAnalysis.cpp
|
---|
| 73 | ===================================================================
|
---|
| 74 | --- ../trunk-jpl/src/c/analyses/SealevelriseAnalysis.cpp (revision 25322)
|
---|
| 75 | +++ ../trunk-jpl/src/c/analyses/SealevelriseAnalysis.cpp (revision 25323)
|
---|
| 76 | @@ -82,7 +82,7 @@
|
---|
| 77 |
|
---|
| 78 | /*deal with dynamic sea level fields: */
|
---|
| 79 | iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_surface_height_change_above_geoid", DslSeaSurfaceHeightChangeAboveGeoidEnum);
|
---|
| 80 | - iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_water_pressure_change_at_sea_floor", DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 81 | + iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_water_pressure_change_at_sea_floor", DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 82 |
|
---|
| 83 | } /*}}}*/
|
---|
| 84 | else if (dslmodel==2){ /*multi-model ensemble dsl model:{{{*/
|
---|
| 85 | @@ -135,7 +135,7 @@
|
---|
| 86 | xDelete<int>(pN);
|
---|
| 87 | /*}}}*/
|
---|
| 88 | iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_surface_height_change_above_geoid",DslSeaSurfaceHeightChangeAboveGeoidEnum);
|
---|
| 89 | - iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_water_pressure_change_at_sea_floor",DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 90 | + iomodel->FetchDataToInput(inputs2,elements,"md.dsl.sea_water_pressure_change_at_sea_floor",DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 91 |
|
---|
| 92 | } /*}}}*/
|
---|
| 93 | else _error_("Dsl model " << dslmodel << " not implemented yet!");
|
---|
| 94 | Index: ../trunk-jpl/src/c/cores/sealevelchange_core.cpp
|
---|
| 95 | ===================================================================
|
---|
| 96 | --- ../trunk-jpl/src/c/cores/sealevelchange_core.cpp (revision 25322)
|
---|
| 97 | +++ ../trunk-jpl/src/c/cores/sealevelchange_core.cpp (revision 25323)
|
---|
| 98 | @@ -70,6 +70,7 @@
|
---|
| 99 |
|
---|
| 100 | if(VerboseSolution()) _printf0_(" saving results\n");
|
---|
| 101 | femmodel->parameters->FindParam(&requested_outputs,&numoutputs,SealevelriseRequestedOutputsEnum);
|
---|
| 102 | + femmodel->inputs2->Echo();
|
---|
| 103 | femmodel->RequestedOutputsx(&femmodel->results,requested_outputs,numoutputs);
|
---|
| 104 | if(numoutputs){for(int i=0;i<numoutputs;i++){xDelete<char>(requested_outputs[i]);} xDelete<char*>(requested_outputs);}
|
---|
| 105 | }
|
---|
| 106 | @@ -750,12 +751,12 @@
|
---|
| 107 |
|
---|
| 108 | IssmDouble modelid;
|
---|
| 109 | /*figure out the type of DslSeaWaterPressureChangeAtSeaFloor input:*/
|
---|
| 110 | - type=femmodel->inputs2->GetInputObjectEnum(DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 111 | + type=femmodel->inputs2->GetInputObjectEnum(DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 112 |
|
---|
| 113 | if(type==DatasetInput2Enum){
|
---|
| 114 |
|
---|
| 115 | /*find the DslSeaWaterPressureChangeAtSeaFloor dataset of transient inputs:*/
|
---|
| 116 | - DatasetInput2* dataset_input=femmodel->inputs2->GetDatasetInput2(DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 117 | + DatasetInput2* dataset_input=femmodel->inputs2->GetDatasetInput2(DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 118 |
|
---|
| 119 | /*Recover modelid:*/
|
---|
| 120 | femmodel->parameters->FindParam(&modelid,DslModelidEnum);
|
---|
| 121 | @@ -764,9 +765,9 @@
|
---|
| 122 | /*Go find the modelid'th transient input:*/
|
---|
| 123 | TransientInput2* transient_input=dataset_input->GetTransientInputByOffset(reCast<int, IssmDouble>(modelid));
|
---|
| 124 |
|
---|
| 125 | - /*Plug into DslDynamicRate input: */
|
---|
| 126 | + /*Plug into DslSeaWaterPressureChangeAtSeaFloor input: */
|
---|
| 127 | Input2* transient_input_copy=transient_input->copy();
|
---|
| 128 | - transient_input_copy->ChangeEnum(DslSeaWaterPressureChangeAtSeaFloor);
|
---|
| 129 | + transient_input_copy->ChangeEnum(DslSeaWaterPressureChangeAtSeaFloorEnum);
|
---|
| 130 | femmodel->inputs2->AddInput(transient_input_copy);
|
---|
| 131 | }
|
---|
| 132 | }
|
---|