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
The value defaults to 1 if there are no cohorts. I don't have any reason to believe this is affecting results. But I do see this as a code vulnerability. Obviously there are no canopy layers if there are no cohorts, and this would potentially affect logic and looping erroneously in various parts of the code.
The text was updated successfully, but these errors were encountered:
See here where we calculate the number of canopy layers:
https://github.com/NGEET/fates/blob/main/biogeochem/EDCanopyStructureMod.F90#L2285
The value defaults to 1 if there are no cohorts. I don't have any reason to believe this is affecting results. But I do see this as a code vulnerability. Obviously there are no canopy layers if there are no cohorts, and this would potentially affect logic and looping erroneously in various parts of the code.
The text was updated successfully, but these errors were encountered: