You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attach an error message, and added in a patch dump (modified to dump cohorts too) before the error triggers.
Error triggered at EDCanopyStructureMod.F90 Line 2233, apparently trying to divide by patch%total_canopy_area (which is zero). There is a cohort on the patch with positive LAI, so there is something clearly wrong with how it is calculating total_canopy_area
A fix for this is in the works. The error here is triggering in a very strange scenario. I believe that a third canopy layer, and the cohorts inhabiting it, were the only cohorts to survive the day's mortality and termination. When this cohort was presented to promotion/demotion logic, it was promoted from level 3 to 2. However, this satisfied the logic to stop promotion/demotion since the canopy areas did not exceed total area. The simple solution is to improve the logic that determines promotion/demotion sucess to require that the the top layers ( ie max(nlcmax,ncl_p)-1 ) match the patch area within a reasonable tolerance, and that only the bottom-most layer is allowed to be less than the patch area.
Tests with nclmax = 3 are generating model crashes on an f10 smoke test using nocomp and fixed biogeography.
Branch (April 11 2025): https://github.com/rgknox/fates/tree/nclmax-3
I attach an error message, and added in a patch dump (modified to dump cohorts too) before the error triggers.
Error triggered at EDCanopyStructureMod.F90 Line 2233, apparently trying to divide by patch%total_canopy_area (which is zero). There is a cohort on the patch with positive LAI, so there is something clearly wrong with how it is calculating total_canopy_area
/glade/u/home/rgknox/ctsm/src/fates/biogeochem/EDCanopyStructureMod.F90:2233):
The text was updated successfully, but these errors were encountered: