Opened 5 years ago

Closed 3 years ago

#369 closed enhancement (fixed)

Sort circumference classes in stomate_prescribe

Reported by: luyssaert Owned by: somebody
Priority: minor Milestone: IPSLCM6.v2
Component: Biogeochemical processes Version:
Keywords: Cc:

Description

The diameter classes in CN-CAN are sorted. Numerically this is not really needed but the model assumes that the smallest trees are in the first diameter class and the largest trees are in the last diameter class. This assumption is used during mortality, land cover change, mortality, etc ...
Following subroutines that may cause this order to change, the diameter classes are sorted. This block of code should be rewritten as a function/subroutine. Now that recruitment is added, it is also possible that recruitment results in larger trees in the first than in the second diameter class (only if the trees are not growing very well).
A call to the sort subroutine should be added in stomate_prescribe

Change History (1)

comment:1 Changed 3 years ago by luyssaert

  • Resolution set to fixed
  • Status changed from new to closed

The proposed changes were committed in r5429

Note: See TracTickets for help on using tickets.