NGEET / fates

repository for the Functionally Assembled Terrestrial Ecosystem Simulator (FATES)
Other
105 stars 92 forks source link

Error statement failing due to mismatch in `kmax_upper_shell` second dimension index in `Report1DError` #1168

Closed glemieux closed 6 months ago

glemieux commented 8 months ago

During a failure while running with hydro on, I'm finding that the error message isn't fully reporting due to crashing on line 4010:

https://github.com/NGEET/fates/blob/42d804ba54d0cf013a9737018ff9920e0c9808ea/biogeophys/FatesPlantHydraulicsMod.F90#L4010

The issue is that the second dimension of kmax_upper_shell is being hardcoded to a value about the allocated size. I'm not sure if the write statement needs to have a reference to the second dimension variable (nshell) or if this is somehow related to the failure mode that caused the call of Report1DError in this instance.