[MITgcm-devel] changes in tracer vertical implicit scheme
Patrick Heimbach
heimbach at MIT.EDU
Wed Feb 1 12:01:16 EST 2012
Jean-Michel,
for the record, are you aware that your changes to tracer vertical implicit scheme
break the adjoint (which we now use in several production calculations)?
Easy way to test (I had thought it's already tested by default) is in
verification/global_ocean.cs32x15/input_ad/
to set
tempImplVertAdv=.TRUE.,
saltImplVertAdv=.TRUE.,
tempVertAdvScheme=3,
saltVertAdvScheme=3,
If you point me to likely culprit routines, I'll take a look.
Thanks
-Patrick
On Dec 1, 2011, at 9:43 AM, Jean-Michel Campin wrote:
> Hi,
>
> Some fix/changes related to tracer vertical direction implicit method:
>
> 1) implicit vertical advection conservation with Adams-Bashforth
> and/or non-lin free-surf:
> the term Tr*d/dz(w) was not going through AB and neither was
> rescaled (NonLin-FreeSurf) and this was breaking tracer conservation.
> I remove Tr*d/dz(w) in gad_implicit_r.F and add it in gad_calc_rhs.F;
> this fix conservation in both cases.
> 2) implicit vertical diffusion or advection with non-lin free-surf:
> Was using current recip_hFacC instead of future recip_hFacC.
> This lead to small error when using NonLin-FreeSurf and also break
> conservation with NonLin-FreeSurf in r-coordinate (but not with r*).
> The right recip_hFac is now computed in thermodynamics.F and passed
> to all vertical implicit S/R.
>
> I also added diagnostics for gtNm1 & gsNm1, so that it's easier
> to check tracer conservation with NonLin-FreeSurf + AB (the quantity
> being conserved is Tr + (0.5+abEps)*deltaT*gtNm1).
> And will add a secondary test to advect_xz to test implicit vertical
> advection (+ NonLin-FreeSurf).
>
> I don't know why those changes affect bottom_ctrl_5x5 (adjoint gradient)
> and break agreement with forward gradient.
> I removed all the implicit vertical code in thermodynamics.F (checked-in),
> and it's better, but still not as good than what it used to be.
> If someone has time to take a look at this experiment.
>
> Cheers,
> Jean-Michel
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
---
Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach
MIT | EAPS 54-1420 | 77 Massachusetts Ave | Cambridge MA 02139 USA
FON +1-617-253-5259 | FAX +1-617-253-4464 | SKYPE patrick.heimbach
More information about the MITgcm-devel
mailing list