Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#error ESMF_VERSION_MAJOR is unset or empty #159

Open
platipodium opened this issue Feb 5, 2023 · 2 comments
Open

#error ESMF_VERSION_MAJOR is unset or empty #159

platipodium opened this issue Feb 5, 2023 · 2 comments

Comments

@platipodium
Copy link
Contributor

This is related to (or the cause of #89 )

cpp -P -traditional -DENABLE_SMP -DCHNK_RRTM=8   -DFRONT_SCHISM=schism_nuopc_cap -D'SVN_INFO="(Lemmen) So Feb  5 11:09:47 CET 2023 rNicht versioniertes Verzeichnis "' -D'CMP_YEAR=2023' -D'CMP_JD=036' MAIN_NEMS.F90 > MAIN_NEMS.tmp.f90
MAIN_NEMS.F90:7:2: error: #error ESMF_VERSION_MAJOR is unset or empty; I do not know what version of ESMF you are using.
    7 | #error ESMF_VERSION_MAJOR is unset or empty; I do not know what version of ESMF you are using.
      |  ^~~~~
make[1]: *** [GNUmakefile:243: MAIN_NEMS.tmp.f90] Fehler 1
make[1]: Verzeichnis „/Users/Lemmen/devel/noaa/CoastalApp/NEMS/src“ wird verlassen
make: *** [/Users/Lemmen/devel/noaa/CoastalApp/NEMS/src/incmake/NEMS.mk:31: 
@platipodium
Copy link
Contributor Author

But the string is correctly present in $ESMFMKFILE

$> grep ESMF_VERSION_MAJOR $ESMFMKFILE
ESMF_VERSION_MAJOR=8

So (once again!!!!) environment information is not correctly passed into NEMS.

#126 #89

@platipodium
Copy link
Contributor Author

Workaround, set the variable in your environment explicitly:

export ESMF_MAJOR_VERSION=8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant