the crop related carbon issues in CLM

Status
Not open for further replies.

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.
 
Status
Not open for further replies.
Back
Top