[MITgcm-devel] optim_m1qn3
Martin Losch
Martin.Losch at awi.de
Mon May 9 07:42:04 EDT 2016
OK, now I fixed ctrl.h, I guess nobody will complain about potentially unused code.
Martin
> On 09 May 2016, at 12:00, Daniel Goldberg <dngoldberg at gmail.com> wrote:
>
> Hi Martin
>
>
>
> On Mon, May 9, 2016 at 10:39 AM, Martin Losch <Martin.Losch at awi.de> wrote:
> Hi Dan,
>
> I just downloaded optim_m1qn3 and tried to compile it (pointing it to tutorial_global_oce_optim) and I could compile it without including “CTRL_SIZE.h”.
>
> Then I tried verification/OpenAd, but that does not work for me, because I have not yet openad installed and so everything is very bumpy and I don’t get to the point where I would need CTRL_SIZE.h, but it seem plausible that you need it when using OPENAD and ALLOW_GENARR2/3D_CONTROL, because then you need the sizes of the xx_genarr.
> I tried to fix this now, but please check, if it works.
>
> Thanks. Looking at your comments, this is very similar to what I tried just to get it working (and it worked). Will try with your changes, likely this will work too.
>
> I noticed a problem with ctrl.h: in line 310, there’s a comma missing, should be:
> common /controlvars_r_openad/
> & xx_place_holder
> # ifdef ECCO_CTRL_DEPRECATED
> & , xx_theta
>
> this did not raise an issue for me, possibly b/c i do not use ECCO_CTRL_DEPRECATED with OpenAD (so I'm not sure if i have anything with which to test against).
>
> …
>
> Maybe you can fix that? Or Gael?
>
> Martin
>
>
> > On 06 May 2016, at 16:38, Daniel Goldberg <dngoldberg at gmail.com> wrote:
> >
> > Hi Martin
> >
> > I am compiling your version of optim_m1qn3 in contrib, and I think this might be my first time using it with an OpenAD experiment (otherwise I am very confused). I needed to insert
> >
> > #include "CTRL_SIZE.h"
> >
> > before any inclusion of ctrl.h to get the code to compile. It seems as though this is only an issue with ALLOW_OPENAD. I just want to confirm this will not affect the results of the m1qn3 algorithm?
> >
> > Many thanks
> > Dan
> >
> >
> >
> > --
> >
> > Daniel Goldberg, PhD
> > Lecturer in Glaciology
> > School of Geosciences, University of Edinburgh
> > Geography Building, Drummond Street, Edinburgh EH8 9XP
> >
> >
> > em: Dan.Goldberg at ed.ac.uk
> > web: http://ocean.mit.edu/~dgoldberg
> > _______________________________________________
> > MITgcm-devel mailing list
> > MITgcm-devel at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
>
>
> --
>
> Daniel Goldberg, PhD
> Lecturer in Glaciology
> School of Geosciences, University of Edinburgh
> Geography Building, Drummond Street, Edinburgh EH8 9XP
>
>
> em: Dan.Goldberg at ed.ac.uk
> web: http://ocean.mit.edu/~dgoldberg
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
More information about the MITgcm-devel
mailing list