use of accumulate_tavg_field in POP?

I would like to know what is the use of the accumulate_tavg_field subroutine. I have commented out the region of the code that in the hdifft_gm routine, how would it affect correctness of the output NC files?
 

njn01

Member
I don't know why you would have commented out a call to a subroutine if you didn't know what it does. In general, this is a very risky action, and I wouldn't recommend making a habit of it.In this instance: if you comment out a call to subroutine accumulate_tavg_field for field "A",  the result will be that time-averaged field "A" will show up as all zeroes in your $case.pop.h.* files, assuming that "A" is listed in the *_tavg_contents file. Depending on what "A" is,  this action may also set a term in pop diagnostics computations to zero, thereby causing the POP diagnostics to be incorrect.
 
Back
Top