[MITgcm-support] Environment for compiling
Jean-Michel Campin
jmc at mit.edu
Fri Apr 1 11:31:47 EDT 2022
Hi Robert,
I have 2 suggestions:
1) It looks like an error related to NetCDF (in pkg/mnc). I would recommend
to proceed in 2 steps:
a) try to sort out things without NetCDF: you can remove "mnc" from your
packages.conf list of pkg and remove/comment-out "useMNC=.TRUE.," in data.pkg
when trying to run.
Once you know that it compiles and run fine (you could even start with a simple
experiment in "MITgcm/verification/"), you could move to second-step:
b) try to sort out NetCDF libs, include dir and Env-var setting.
2) It could be useful to include the optfile you are using, i.e., "gaea_c3",
since it's not in the standard MITgcm repos. This way we might be able to
provide better advises.
Cheers,
Jean-Michel
On Wed, Mar 30, 2022 at 05:24:38PM +0000, Nazarian, Robert wrote:
> Hi everyone,
>
> I am compiling a new setup of the MITgcm and am encountering an error while compiling. I am using the standard compiling routine:
> module unload PrgEnv-intel
> module load PrgEnv-pgi
> module load cray-netcdf
> module load PythonEnv-noaa
> ../tools/genmake2 -mpi -of ../tools/build_options/gaea_c3 -mods=../simulation_name/code
> make depend
> make
>
> During the make process, I get the following error:
> PGF90-S-0038-Symbol, mnc_tag_id, has not been explicitly declared (mnc_cw_model_attr.f)
> 0 inform, 0 warnings, 1 severes, 0 fatal for mnc_cw_set_gattr
> make[1]: *** [Makefile:1468: mnc_cw_model_attr.o] Error 2
> make[1]: Leaving directory '/ncrc/home2/Robert.Nazarian/models/MITgcm/bin'
> make: *** [Makefile:1380: fwd_exe_target] Error 2
>
> One of my colleagues, however, can successfully compile using this same routine and the same /tools directory (so it isn???t a problem of either gaea_c3 or genmake2). I suspect that it may be an issue with the environments, but am not sure which environment I???m missing. Has anyone else run into this problem or have a suggestion?
>
> Thanks,
> Rob
>
> Robert Nazarian, PhD
> Assistant Professor, Department of Physics
> Fairfield University
> (203) 254-4000 ext. 4115
> rnazarian at fairfield.edu<mailto:rnazarian at fairfield.edu>
> Twitter: @fairfielduphys
> Instagram: fairfielduphysics
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list