[MITgcm-devel] simpler/shorter main_do_loop.F

Jean-Michel Campin jmc at ocean.mit.edu
Sat Aug 3 16:22:34 EDT 2013


Hi Patrick,

Thanks for the answer. Some comments below.

On Sat, Aug 03, 2013 at 03:20:53PM -0400, Patrick Heimbach wrote:
> Hi Jean-Michel,
> 
> On Aug 3, 2013, at 12:25 PM, Jean-Michel Campin <jmc at ocean.mit.edu> wrote:
> 
> > Hi Patrick,
> > 
> > I am going to remove the STORE_LOADEDREC_TEST stuff in model/src/main_do_loop.F
> > (since it's wrong). 
> 
> I can't remember, but don't think I put it there (but might be wrong).
> Perhaps some user called jmc ;)
> http://mitgcm.org/viewvc/MITgcm/MITgcm/model/src/the_main_loop.F?r1=1.115&r2=1.116&sortby=date&
Yes, I know. But it cannot be put within the iloop. So, since the iloop moved
back to the_main_loop.F (On Apr 29), it should stay in the_main_loop.F
Anyway, I've checked in this fix.

> > I was also tempted to remove all the 1rst part of  
> > the (long) list of included header files within:
> >> #ifdef ALLOW_AUTODIFF
> >> # ifndef ALLOW_AUTODIFF_OPENAD
> > and just keeping the 2nd part (also used with ALLOW_AUTODIFF_OPENAD).
> > 
> > I think this would make things more clear that this routine
> > really matter for OpenAD (and not much, just a call to FORWARD_STEP,
> > otherwise). One might even think of placing the 2nd part of the
> > included header list within #ifdef ALLOW_AUTODIFF_OPENAD.
> > 
> > I did run all the AD (taf) test, and nothing change (same taf_ad.log).
> > 
> > What is your view on this ?
> 
> I can check, but happy to follow your suggestions since the tests are fine.
> Basically, if I remember correct, this was a start to unify required includes
> between OpenAD and TAF (but not cleaned).

Going back to "main_do_loop.F", I think some included headers are used with OpenAD
(cf revision 1.6 from Oliver, with his comment:
> include ptracers headers also with OpenAD
and this was added only in main_do_loop.F and not in the_main_loop.F ).
So I think I will just comment out the 1rst list of included headers, which are not 
currently added with OpenAD, (in case some might be needed later on for OpenAD), 
and only includes the 2nd list for OpenAD.

Cheers,
Jean-Michel

> 
> Cheers
> p.
> 
> > 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
> 



> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel




More information about the MITgcm-devel mailing list