Skip to content

Commit

Permalink
Merge pull request #118 from ec-jrc/release_proposal_4.1.1
Browse files Browse the repository at this point in the history
Release proposal 4.1.1
  • Loading branch information
doc78 authored Dec 9, 2022
2 parents b5cdb6f + 6043971 commit a728970
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 141 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.0
4.1.1
6 changes: 4 additions & 2 deletions src/lisflood/Lisflood_dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ def splitlanduse(array1, array2=None, array3=None):
# sum of both lines
# CrossSection2Area = pcraster.max(scalar(0.0), (self.Chan2M3Kin - self.Chan2M3Start) / self.ChanLength)

self.TotalCrossSectionArea = self.ChanM3 * self.InvChanLength

self.sumDis += self.sumDisDay
self.ChanQAvg = self.sumDisDay/self.NoRoutSteps
self.TotalCrossSectionArea = self.ChanM3 * self.InvChanLength

# Total volume of water in channel per inv channel length
# New cross section area (kinematic wave)
# This is the value after the kinematic wave, so we use ChanM3Kin here
Expand Down Expand Up @@ -256,4 +258,4 @@ def splitlanduse(array1, array2=None, array3=None):
self.stateVar_module.dynamic()
if option['wateruse'] and option['indicator'] and self.monthend:
self.indicatorcalc_module.dynamic_setzero()
# setting monthly and yearly dindicator to zero at the end of the month (year)
# setting monthly and yearly dindicator to zero at the end of the month (year)
87 changes: 44 additions & 43 deletions src/lisflood/global_modules/default_options.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/lisflood/hydrological_modules/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def initialSecond(self):
self.var.Chan2M3Kin = self.var.CrossSection2Area * self.var.ChanLength + self.var.Chan2M3Start
self.var.ChanM3Kin = self.var.ChanM3 - self.var.Chan2M3Kin + self.var.Chan2M3Start

self.var.ChanM3Kin = np.where((self.var.ChanM3Kin < 0.0) & (self.var.ChanM3Kin > -0.0000001),0.0,self.var.ChanM3Kin)
self.var.ChanM3Kin = np.where((self.var.ChanM3Kin < 0.0) & (self.var.ChanM3Kin > -0.0000001),0.0,self.var.ChanM3Kin) # this line prevents the warmstart from failing in case of small numerical imprecisions when writing and reading the maps

self.var.Chan2QKin = (self.var.Chan2M3Kin * self.var.InvChanLength * self.var.InvChannelAlpha2) ** (self.var.InvBeta)
self.var.ChanQKin = (self.var.ChanM3Kin * self.var.InvChanLength * self.var.InvChannelAlpha) ** (self.var.InvBeta)
Expand Down
18 changes: 9 additions & 9 deletions tests/data/LF_ETRS89_UseCase/settings/base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3131,21 +3131,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
SWITCHED ON (DEFAULT: ALL SWITCHED OFF)
</comment>

<textvar name="Theta1Maps" value="$(PathOut)/thtop">
<textvar name="Theta1Maps" value="$(PathOut)/tha">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2Maps" value="$(PathOut)/thsub">
<textvar name="Theta2Maps" value="$(PathOut)/thb">
<comment>
Reported volumetric soil moisture content for
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3Maps" value="$(PathOut)/thbot">
<textvar name="Theta3Maps" value="$(PathOut)/thc">
<comment>
Reported volumetric soil moisture content for
soil layer 3 [V/V]
Expand Down Expand Up @@ -3263,21 +3263,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1ForestMaps" value="$(PathOut)/thFt">
<textvar name="Theta1ForestMaps" value="$(PathOut)/thfa">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2ForestMaps" value="$(PathOut)/thFs">
<textvar name="Theta2ForestMaps" value="$(PathOut)/thfb">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3ForestMaps" value="$(PathOut)/thFb">
<textvar name="Theta3ForestMaps" value="$(PathOut)/thfc">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down Expand Up @@ -3527,21 +3527,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thIt">
<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thia">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thIs">
<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thib">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thIb">
<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thic">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down
18 changes: 9 additions & 9 deletions tests/data/LF_ETRS89_UseCase/settings/full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5169,7 +5169,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>


<textvar name="Theta1Maps" value="$(PathOut)/thtop">
<textvar name="Theta1Maps" value="$(PathOut)/tha">

<comment>

Expand All @@ -5182,7 +5182,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta2Maps" value="$(PathOut)/thsub">
<textvar name="Theta2Maps" value="$(PathOut)/thb">

<comment>

Expand All @@ -5195,7 +5195,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta3Maps" value="$(PathOut)/thbot">
<textvar name="Theta3Maps" value="$(PathOut)/thc">

<comment>

Expand Down Expand Up @@ -5375,7 +5375,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta1ForestMaps" value="$(PathOut)/thFt">
<textvar name="Theta1ForestMaps" value="$(PathOut)/thfa">

<comment>

Expand All @@ -5388,7 +5388,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta2ForestMaps" value="$(PathOut)/thFs">
<textvar name="Theta2ForestMaps" value="$(PathOut)/thfb">

<comment>

Expand All @@ -5401,7 +5401,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta3ForestMaps" value="$(PathOut)/thFb">
<textvar name="Theta3ForestMaps" value="$(PathOut)/thfc">

<comment>

Expand Down Expand Up @@ -5858,7 +5858,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thIt">
<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thia">

<comment>

Expand All @@ -5871,7 +5871,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thIs">
<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thib">

<comment>

Expand All @@ -5884,7 +5884,7 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</textvar>


<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thIb">
<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thic">

<comment>

Expand Down
18 changes: 9 additions & 9 deletions tests/data/LF_ETRS89_UseCase/settings/inflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3129,21 +3129,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
SWITCHED ON (DEFAULT: ALL SWITCHED OFF)
</comment>

<textvar name="Theta1Maps" value="$(PathOut)/thtop">
<textvar name="Theta1Maps" value="$(PathOut)/tha">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2Maps" value="$(PathOut)/thsub">
<textvar name="Theta2Maps" value="$(PathOut)/thb">
<comment>
Reported volumetric soil moisture content for
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3Maps" value="$(PathOut)/thbot">
<textvar name="Theta3Maps" value="$(PathOut)/thc">
<comment>
Reported volumetric soil moisture content for
soil layer 3 [V/V]
Expand Down Expand Up @@ -3261,21 +3261,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1ForestMaps" value="$(PathOut)/thFt">
<textvar name="Theta1ForestMaps" value="$(PathOut)/thfa">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2ForestMaps" value="$(PathOut)/thFs">
<textvar name="Theta2ForestMaps" value="$(PathOut)/thfb">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3ForestMaps" value="$(PathOut)/thFb">
<textvar name="Theta3ForestMaps" value="$(PathOut)/thfc">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down Expand Up @@ -3525,21 +3525,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thIt">
<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thia">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thIs">
<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thib">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thIb">
<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thic">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down
18 changes: 9 additions & 9 deletions tests/data/LF_ETRS89_UseCase/settings/prerun.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3127,21 +3127,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
SWITCHED ON (DEFAULT: ALL SWITCHED OFF)
</comment>

<textvar name="Theta1Maps" value="$(PathOut)/thtop">
<textvar name="Theta1Maps" value="$(PathOut)/tha">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2Maps" value="$(PathOut)/thsub">
<textvar name="Theta2Maps" value="$(PathOut)/thb">
<comment>
Reported volumetric soil moisture content for
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3Maps" value="$(PathOut)/thbot">
<textvar name="Theta3Maps" value="$(PathOut)/thc">
<comment>
Reported volumetric soil moisture content for
soil layer 3 [V/V]
Expand Down Expand Up @@ -3259,21 +3259,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1ForestMaps" value="$(PathOut)/thFt">
<textvar name="Theta1ForestMaps" value="$(PathOut)/thfa">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2ForestMaps" value="$(PathOut)/thFs">
<textvar name="Theta2ForestMaps" value="$(PathOut)/thfb">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3ForestMaps" value="$(PathOut)/thFb">
<textvar name="Theta3ForestMaps" value="$(PathOut)/thfc">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down Expand Up @@ -3523,21 +3523,21 @@ LFBINDING: MORE LOW-LEVEL CONTROL OVER MODEL IN- AND OUTPUT
</comment>
</textvar>

<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thIt">
<textvar name="Theta1IrrigationMaps" value="$(PathOut)/thia">
<comment>
Reported volumetric soil moisture content for
soil layer 1 [V/V]
</comment>
</textvar>

<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thIs">
<textvar name="Theta2IrrigationMaps" value="$(PathOut)/thib">
<comment>
Reported volumetric soil moisture content for both
soil layer 2 [V/V]
</comment>
</textvar>

<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thIb">
<textvar name="Theta3IrrigationMaps" value="$(PathOut)/thic">
<comment>
Reported volumetric soil moisture content for both
soil layer 3 [V/V]
Expand Down
Loading

0 comments on commit a728970

Please sign in to comment.