[15393] | 1 | Index: ../trunk-jpl/src/c/solutions/hydrology_core.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/solutions/hydrology_core.cpp (revision 14934)
|
---|
| 4 | +++ ../trunk-jpl/src/c/solutions/hydrology_core.cpp (revision 14935)
|
---|
| 5 | @@ -20,6 +20,7 @@
|
---|
| 6 | int output_frequency,hydrology_model;
|
---|
| 7 | bool save_results;
|
---|
| 8 | bool modify_loads=true;
|
---|
| 9 | + bool isefficientlayer;
|
---|
| 10 | IssmDouble starttime,final_time;
|
---|
| 11 | IssmDouble time,dt;
|
---|
| 12 |
|
---|
| 13 | @@ -78,13 +79,16 @@
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | else if (hydrology_model==HydrologydcEnum){
|
---|
| 17 | + femmodel->parameters->FindParam(&isefficientlayer,HydrologydcIsefficientlayerEnum);
|
---|
| 18 | if(VerboseSolution()) _pprintLine_(" computing water head");
|
---|
| 19 | solver_hydro_nonlinear(femmodel);
|
---|
| 20 | if(save_results && ((i+1)%output_frequency==0 || (i+1)==nsteps)){
|
---|
| 21 | if(VerboseSolution()) _pprintLine_(" saving results ");
|
---|
| 22 | InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,SedimentHeadEnum);
|
---|
| 23 | InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,SedimentHeadResidualEnum);
|
---|
| 24 | -
|
---|
| 25 | + if(isefficientlayer){
|
---|
| 26 | + InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,EplHeadEnum);
|
---|
| 27 | + }
|
---|
| 28 | /*unload results*/
|
---|
| 29 | if(VerboseSolution()) _pprintLine_(" saving temporary results");
|
---|
| 30 | OutputResultsx(femmodel->elements, femmodel->nodes, femmodel->vertices, femmodel->loads, femmodel->materials, femmodel->parameters,femmodel->results);
|
---|
| 31 | Index: ../trunk-jpl/src/c/modules/ModelProcessorx/HydrologyDCEfficient/UpdateElementsHydrologyDCEfficient.cpp
|
---|
| 32 | ===================================================================
|
---|
| 33 | --- ../trunk-jpl/src/c/modules/ModelProcessorx/HydrologyDCEfficient/UpdateElementsHydrologyDCEfficient.cpp (revision 14934)
|
---|
| 34 | +++ ../trunk-jpl/src/c/modules/ModelProcessorx/HydrologyDCEfficient/UpdateElementsHydrologyDCEfficient.cpp (revision 14935)
|
---|
| 35 | @@ -49,7 +49,7 @@
|
---|
| 36 | iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum);
|
---|
| 37 | iomodel->FetchDataToInput(elements,MaskElementonwaterEnum);
|
---|
| 38 | iomodel->FetchDataToInput(elements,BasalforcingsMeltingRateEnum);
|
---|
| 39 | - iomodel->FetchDataToInput(elements,SedimentHeadEnum);
|
---|
| 40 | + iomodel->FetchDataToInput(elements,EplHeadEnum);
|
---|
| 41 |
|
---|
| 42 | /*Free data: */
|
---|
| 43 | iomodel->DeleteData(1,MeshElementsEnum);
|
---|