[MITgcm-devel] problem with getenv

Martin Losch Martin.Losch at awi.de
Thu Nov 30 09:46:08 EST 2017


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



More information about the MITgcm-devel mailing list