Loading OpenSimRoot/src/modules/Soil/Watflow.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -138,15 +138,19 @@ oldDeltat_(-1) SimulaBase* zeroFlux = ORIGIN->existingPath("environment/soil/water/zeroFluxBottomBoundary"); if(zeroFlux) { zeroFlux->get(zeroFluxBottomBoundary_); if(zeroFluxBottomBoundary_) msg::warning("Watflow: Using zero flux bottom boundary condition.",3); }else{ msg::warning("Watflow: Using Free drainage bottom boundary.",3); if(zeroFluxBottomBoundary_){ msg::warning("Watflow: Using zero flux bottom boundary condition.",3); FreeD=false; } } if(depthWaterTable_) { if(zeroFluxBottomBoundary_) msg::error("Watflow: Both depthOfWaterTable and zeroFluBottomBoundary set. Use one of the two."); msg::warning("Watflow: Using Dirichlet bottom boundary based on specified depthOfWaterTable.",3); FreeD=false; ///todo enumerator would be better, so we can simply switch between various boundaries } if(FreeD){ msg::warning("Watflow: Using Free drainage bottom boundary.",3); } p = ORIGIN->existingPath("environment/soil/water/allowOutflow"); if (p) p->get(allowOutflowFromRoots); Loading Loading
OpenSimRoot/src/modules/Soil/Watflow.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -138,15 +138,19 @@ oldDeltat_(-1) SimulaBase* zeroFlux = ORIGIN->existingPath("environment/soil/water/zeroFluxBottomBoundary"); if(zeroFlux) { zeroFlux->get(zeroFluxBottomBoundary_); if(zeroFluxBottomBoundary_) msg::warning("Watflow: Using zero flux bottom boundary condition.",3); }else{ msg::warning("Watflow: Using Free drainage bottom boundary.",3); if(zeroFluxBottomBoundary_){ msg::warning("Watflow: Using zero flux bottom boundary condition.",3); FreeD=false; } } if(depthWaterTable_) { if(zeroFluxBottomBoundary_) msg::error("Watflow: Both depthOfWaterTable and zeroFluBottomBoundary set. Use one of the two."); msg::warning("Watflow: Using Dirichlet bottom boundary based on specified depthOfWaterTable.",3); FreeD=false; ///todo enumerator would be better, so we can simply switch between various boundaries } if(FreeD){ msg::warning("Watflow: Using Free drainage bottom boundary.",3); } p = ORIGIN->existingPath("environment/soil/water/allowOutflow"); if (p) p->get(allowOutflowFromRoots); Loading