Commit 55214bf9 authored by jouke's avatar jouke
Browse files

Fixed erroneous warning about use of free drainage when dirichlet is

used.
parent 81ee7ec3
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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);