frank0434 / Master

repo for the master project - water stress for APSIMX lucerne model
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

SD10 had swc greater than DUL #53

Closed frank0434 closed 3 years ago

frank0434 commented 3 years ago
System.Exception: ERROR in file: C:\jianliu\Master\01Data\ProcessedData\apsimxFiles\tempIversen12_SD10_0.411_26.381_0.008_0.031_227.667_11.896_5.982_6.991_1.604.apsimx
Simulation name: Iversen12SowingDateSD10
yer 18 is above drained upper limit of 0.276a
SlurpSoil LL of 0.299 in layer 20 is above drained upper limit of 0.298
Drained upper limit of 0.276 in layer 18 is at or below lower limit of 0.280
Drained upper limit of 0.298 in layer 20 is at or below lower limit of 0.299
frank0434 commented 3 years ago

Caused by sourcing the wrong LL In the target plan, `LL15 was updated by using 95% of LL value. https://github.com/frank0434/Master/blob/22c92c96d80781295f74cc7e6c98f3e19b3dfcfd/_targets.R#L111 But the actual value for configuring the APSIMX file was still the LL values. https://github.com/frank0434/Master/blob/22c92c96d80781295f74cc7e6c98f3e19b3dfcfd/02Scripts/R/functions.R#L197-L204

Solution Change SW.LL15 to SW.LL in the target plan.

Problem All previous optimisation will require a re-run 😭 🥵 😓 😱 😰

frank0434 commented 3 years ago

problem remains. Need to examine the calculated values and compare them to the previous values in xlsx.