[MITgcm-support] A question about MNC
Martin Losch
Martin.Losch at awi.de
Thu Sep 20 07:22:59 EDT 2018
Hi Kou,
on top of Gus’s suggestions you should also have a look at genmake.log after generating the makefile. There’s a test for netcdf header files and libraries, if that fails, then netcdf will be turned off. In that case you need to adjust you build_options_file as Gus has already said.
Martin
> On 17. Sep 2018, at 18:15, Gustavo Correa <gus at ldeo.columbia.edu> wrote:
>
> Hi Kou
>
> Hard to tell with the little information you provided.
>
> Some suggestions:
>
> Do a make CLEAN in your build directory,
> to avoid using any leftover from previous build (that may not have mnc).
> Or simply 'rm -f *' there.
>
> Make sure your build options file is points to netCDF library and
> include directories that actually exist in your computer.
>
> Make sure you run genmake2 again, pointing to the build options file above,
> to regenerate the Makefile, after you add mnc to packages.conf.
>
> Before you run 'make', take a good look at the Makefile that was generated,
> and double check the netCDF library & include location.
>
> Dump the output of 'make' to a log file (e.g. make |& tee make.log),
> so that you can check for possible errors.
>
> If errors occur (it is seldom a single error), search for the *first* error in the log file,
> as subsequent errors may be just propagated from the first.
> The first error is the one that needs to be addressed.
>
> I hope this helps,
> Gus Correa
>
>> On Sep 17, 2018, at 09:23, Kou Ruizhi <kououc at outlook.com> wrote:
>>
>> Hi everyone:
>> I am trying to output data with nc files. After importing the MNC, I got a WARNING, “but pkg/mnc has not been compiled (#undef ALLOW_MNC)”. The MNC has been turned on in packages.conf. I can’t find the ALLOW_MNC in CPP_OPTIONS.h, even in pkg/mnc’s Header files.
>> I would appreciate it if you could give me some suggestions. I am looking forward to your letters.
>>
>> Sincerely,
>> Ruizhi Kou
>>
>> _______________________________________________
>> 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
More information about the MITgcm-support
mailing list