[MITgcm-support] auto turning off of netCDF
Patrick Heimbach
heimbach at MIT.EDU
Thu Sep 30 12:29:52 EDT 2004
Hi Ed,
I had that same experience,
my point no. 1 in the mail I sent you yesteray.
Basically, genmake2 says,
> Due to this failure, the "mnc" package is now DISABLED.
but then doesn't turn it off.
I am pasting my mail again here:
> I'm just trying to run ./testreport -t dic_example
> (of which I know it uses mnc).
> I am getting the following warning:
>
> *********************************************************************
> WARNING: the "mnc" package was enabled but tests failed to compile
> NetCDF applications. Please check that:
>
> 1) NetCDF is correctly installed for this compiler and
> 2) the LIBS variable (within the "optfile") specifies the correct
> NetCDF library to link against.
>
> Due to this failure, the "mnc" package is now DISABLED.
> *********************************************************************
>
> However, that package seems to remain enabled,
> all mnc_ routines are in the Makefile list,
> and compilation crashes in an mnc_routine:
> (looks like a missing header)
> mnc_cw_model_attr.f: In subroutine `mnc_cw_set_gattr':
...
-Patrick
> -----Original Message-----
> From: mitgcm-support-bounces at mitgcm.org
> [mailto:mitgcm-support-bounces at mitgcm.org] On Behalf Of chris hill
> Sent: Thursday, September 30, 2004 12:08 PM
> To: mitgcm-support
> Subject: [MITgcm-support] auto turning off of netCDF
>
>
> Hi Ed,
>
> When I do
> ../../../tools/genmale2 -mods=../code
> in
> verification/global_ocean.90x40x15/build
> with the CVS HEAD I get a message saying netCDF has been turned off
> (see below). However, the build then fails on
>
> mnc_cw_model_attr.F
>
> First fail is with _RL not being macro'd. I moved #include in
> MNC_OPTIONS.h to fix this.
> Then I get a fail on MNC_TAG_ID in some executable code etc....
> It looks like the auto turn off thing doesn't turn it off
> like it says.
>
> If I remove mnc from hardcoded in ../code/packages.conf it works.
>
> Can you change genmake2 so that if netCDF is not found then the
> ../code/packages.conf enable option is overridden?
>
> Chris
>
>
>
>
> *********************************************************************
> WARNING: the "mnc" package was enabled but tests failed to compile
> NetCDF applications. Please check that:
>
>
> 1) NetCDF is correctly installed for this compiler and
> 2) the LIBS variable (within the "optfile") specifies the correct
> NetCDF library to link against.
>
>
> Due to this failure, the "mnc" package is now DISABLED.
> *********************************************************************
>
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
>
More information about the MITgcm-support
mailing list