Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

the crop related carbon issues in CLM

xiaoxiaokuishu

Ru Xu
Member
Hi, all,

I use a modifed version of CLM5 to run a single-point simulation, after 13 years run (now is 2006),
the LAI started to drop to almost 0 (now LEAFC becom to negative),
then after continue run 7 years (now is 2013), the model stopped,
with netcdf write issues (I thought some extreme value or nan value existed).

I would like to ask a question about how to debug this model, when my LEAFC starts to go negative and at this point the LAI is very small already,
how do I trace back all the chains about the carbon cycle, for example who influences the LEAFC, let's say that A influences the LEAFC, and then who influences the A, and which variable should I stop this backtracking at..... see below figures (x axis is months),

1742404777567.png1742404822681.png

Best
Ru
 

slevis

Moderator
Staff member
@xiaoxiaokuishu
debugging is difficult, it becomes easier with practice, and it can be very personal in terms of approaches used.

I often use the old fashioned approach of adding "write" statements in the code. This debugging approach can sometimes require dozens of trial and error attempts, but it can give you insight into what is happening.
 
Top