[MITgcm-support] Loading Netcdf libraries for MITGCM

Nairita Pal nairita.pal at coral.iitkgp.ac.in
Wed Apr 12 03:17:57 EDT 2023


Hi Martin,

Thanks so much for the prompt reply. Really appreciate it.

I have hardwired the path in my linux_amd64_gfortran path, but still it doesn't work. I am wondering if some compiler mismatch could be the issue. Attached is my linux_amd64_gfortran file. Thanks so much in advance!

Best regards,
Nairita

----- Original Message -----
From: "Martin Losch" <Martin.Losch at awi.de>
To: "MITgcm Support" <mitgcm-support at mitgcm.org>
Sent: Wednesday, April 12, 2023 12:32:33 PM
Subject: Re: [MITgcm-support] Loading Netcdf libraries for MITGCM

If the netcdf libaries are in an unusual place you need to tell the model where they are. Depending on which build options file you are using you can either hardwire this in the build options file and set the variables:

    INCLUDES='-I/yourPath/include'
    LIBS='-L/yourPath/lib’

or similar, or you may be able to set the environment variable NETCDF_ROOT, NETCDF_HOME, etc before you run gemake2. Have a look at your optfile (e.g. tools/build_options/linux_amd64_gfortran) so see how to do it.

Martin


> On 12. Apr 2023, at 08:23, Nairita Pal <nairita.pal at coral.iitkgp.ac.in> wrote:
> 
> Hi,
> 
> I want to compile the MITGCM code for a verification test case exp2. While compiling the code, although everything else runs fine, the netcdf library seems to be missing. I get the message:
> 
> "Can we create NetCDF-enabled binaries...  no"
> 
> I was wondering if you could help me regarding this issue.
> 
> Note that I have loaded NetCDF libraries. However, the location is not the usual /usr/include directory, and is loaded in a software directory in my home folder inside the cluster. Probably there are some inconsistencies regarding the paths?
> 
> Best regards,
> Nairita Pal
> 
> -- 
> Assistant Professor,
> Center for Oceans, Rivers, Atmosphere and Land Sciences (CORAL)
> IIT Kharagpur
> 
> Homepage: https://sites.google.com/view/nairita-pal/home
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support

_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
-- 
Assistant Professor,
Center for Oceans, Rivers, Atmosphere and Land Sciences (CORAL)
IIT Kharagpur

Homepage: https://sites.google.com/view/nairita-pal/home
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux_amd64_gfortran
Type: application/x-shellscript
Size: 5560 bytes
Desc: not available
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20230412/a617cc6d/attachment.bin>


More information about the MITgcm-support mailing list