Hello,
I am trying to calculate the diagnostic terms for salt and temperature by hand such as salt_xadv and salt_yadv. Can anyone point me to where in the ROMS code the diagnostic terms are being calculated? I am close to finding the solutions by using the same time step with the average output but I think I am calculating the m and n term incorrectly in the volume average estimates. The equations that are listed on the ROMS wiki page do not indicate the exactly how to calculate the m and values listed below
https://www.myroms.org/wiki/Numerical_S ... _Technique
Thank you for your help.
Diagnostic terms
Re: Diagnostic terms
You can look in step3d_t.F for DIAGNOSTICS_TS which should lead you to the advection computations.
m and n are pm and pn in the code, equal to 1/dx and 1/dy, respectively. pm(i,j) would be 1 over the distance from the u-point at (i,j) to the u-point at (i+1,j).
m and n are pm and pn in the code, equal to 1/dx and 1/dy, respectively. pm(i,j) would be 1 over the distance from the u-point at (i,j) to the u-point at (i+1,j).