Value adding up through PFTs

Dear Patrick,

Hi. I am trying to calculate the average temperature for 11.30 -12.30 for that I need to get the sum of it first. But I discovered that for timestep 43200 (12pm).The temperature has been added up through PFTs. As seen in first figure below, the sum temperature (name:12) has been changing for each PFT. The value kept adding up 565.29,848.35,1131.41. However, for timestep 41400 (11.30am), sum temperature stays the same for each PFT as it should (second figure).


I believe runs for each PFT should be seperate and inpendent and I am not sure why is this happening and why it’s different for various time steps. It would be great if you can take a look.

Best,
Wenyao


This is the code I use to average that. Thanks a lot for your time

Hi Wenyao:
I would guess that you will need to initialize t_sum(l) to 0 elsewhere, outside the loop over PFT. Likewise, I would guess that you will need to divide t_sum(l) by 3.0 elsewhere, outside the loop over PFT.
But that’s just a guess on my part.
Patrick

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.