[MITgcm-devel] problem with getenv

Jean-Michel Campin jmc at mit.edu
Fri Dec 1 08:50:42 EST 2017


Hi Martin,

You could start with this simple solution, and when it becomes
clear that this feature is also needed on other platform then 
we will add a genmake2 test + specific setting.

Cheers,
Jean-Michel

On Fri, Dec 01, 2017 at 02:14:05PM +0100, Martin Losch wrote:
> alternatively I coud just use:
> 
> -DGETENV=GET_ENVIRONMENT_VARIABLE
> 
> in my build_options file. That works too
> 
> Martin
> 
> > On 30. Nov 2017, at 15:46, Martin Losch <Martin.Losch at awi.de> wrote:
> > 
> > Hi all,
> > I am experiementing with a new platform and compiler, where ???GETENV??? (used in S/R MACHINE in eesupp/src/utils.F) is not available. Instead I have to use GET_ENVIRONMENT_VARIABLE, which apparently is an intrinsic defined by the Fortran 2003 standard.
> > 
> > Would it make sense to replace GETENV with GET_ENVIRONMENT_VARIABLE entirely (probably a problem with g77)?
> > Or should we have another test in genmake2 ???HAVE_GETENV??? or ???HAVE_GET_ENVIRONMENT_VARIABLE??? to choose with function to use?
> > 
> > Martin
> > 
> > _______________________________________________
> > MITgcm-devel mailing list
> > MITgcm-devel at mitgcm.org
> > http://mailman.mitgcm.org/mailman/listinfo/mitgcm-devel
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-devel


More information about the MITgcm-devel mailing list