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

Apsim failed when resetting soil water #31

Closed frank0434 closed 3 years ago

frank0434 commented 3 years ago
System.Exception: Error in file: C:\Data\Master\01Data\ApsimxFiles\LucerneValidation.apsimx Simulation: Iversen12SowingDateSD1 ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Models.WaterModel.WaterBalance.set_SW(Double[] value) in C:\Data\ApsimX\ApsimXLatest\Models\Soils\WaterModel\WaterBalance.cs:line 240
frank0434 commented 3 years ago

the manager works when providing values directly to it. but not via factorial.

image

frank0434 commented 3 years ago

Example of setting the manager correctly in factor node. image