[MITgcm-devel] problem with getenv
Martin Losch
Martin.Losch at awi.de
Fri Dec 1 08:14:05 EST 2017
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
More information about the MITgcm-devel
mailing list