Opened 5 years ago

Closed 5 years ago

#337 closed defect (fixed)

Bug in isotope_delta13c

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


The code crashes with a floating error in isotope_deltac13.

Change History (1)

comment:1 Changed 5 years ago by luyssaert

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

The crash with assimi was caused in the calculation of delta 13C. That routine starts to check whether there was photosynthesis before it calculates 13C fractionation. The photosynthesis test made use of assimi but assimi was designed as a local variable in trans_co2. There is a loop over the canopy levels in trans_co2 and the values in assimi are overwritten with the values of the next layer. Assimi should not have been passed to another routine. The tests at the start of isotope_delta13c have been rewritten making use of assimi_lev (which stores the values for all the layers).

The fix has been committed in r4071

Note: See TracTickets for help on using tickets.