[MITgcm-support] MITgcm now uses NetCDF (was: Re: testreport on G4, mnc)
Martin Losch
mlosch at awi-bremerhaven.de
Fri Sep 24 08:17:50 EDT 2004
Hi Ed,
In this case I have suggestion. I DID have NetCDF installed in
/sw/incluce and /sw/lib, which is the place where FINK puts them. I
have now linked the files into /usr/include and /usr/lib and now exp0
seems to pass.
Appearently, MITgcm requires the libraris and includes to be in a
particular place (/usr/include /usr/lib). This will not work on all
systems. Wouldn't it be a good idea to include the netcdf-path in the
build options (or as a general rule as environment varibles that are
passed to make; on second thought environment variables may not be a
good idea because different makes behave differently with respect to
reading environment variables)
(I thought that testreport only tries to use MNC if it already has
detected some for of NetCDF, is that so?)
Martin
On Sep 24, 2004, at 1:52 PM, Ed Hill wrote:
> On Fri, 2004-09-24 at 05:41, Martin Losch wrote:
>> Hi Ed,
>> my Mac G4 PowerBook just completed a testreport with a lot fails (I
>> used the -addr option!). I have the impression that all experiments
>> that did not compile have a data.mnc in them and the netcdf.inc was
>> not
>> found. What could be going on?
>
>
> Hi Martin,
>
> I'm moving this response over to the support list since a lot of users
> will probably want to see it.
>
> We're becoming more serious about NetCDF and have added it to the
> following verification experiments:
>
> aim.5l_cs, dic_example, exp0, global_ocean.90x40x15,
> hs94.cs-32x32x5
>
> So to get them all to pass you will need to first install NetCDF. Its
> really easy. The commands for the Mac with g77 are:
>
> $ wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1.tar.Z
> $ gunzip netcdf-3.5.1.tar.Z
> $ tar -xvf netcdf-3.5.1.tar
> $ cd netcdf-3.5.1/src/
> $ export CFLAGS="-Df2cFortran -fPIC"
> $ export CPPFLAGS="-DNDEBUG -Df2cFortran -fPIC"
> $ ./configure --prefix=/usr
> $ make
> $ sudo make install
>
> and this was verified yesterday on a brand-new dual-G5.
>
> For Linux systems using g77 as the compiler, you can do the same
> source-based install as above or you can use convenient binary RPMs
> available at:
>
> http://mitgcm.org/eh3/packages/
>
> which have been tested on RH 8 and 9, Fedora Core 1 and 2, and SuSE
> 9.x. I've become the official packager of NetCDF for Fedora Extras and
> it will soon appear in the list of available packages at:
>
> http://www.fedora.us/
>
> For non-g77 installs, you may have to use a slightly different set of
> compiler flags. I've installed NetCDF for the following compilers:
>
> Intel ifc v5.x, v6.x, 7.x; Intel ifort v8.0; Intel efc
> PGI v3.2
>
> and the NetCDF home pages have plenty of details on how to get it
> working on other systems:
>
> http://my.unidata.ucar.edu/content/software/netcdf/index.html
> http://my.unidata.ucar.edu/content/software/netcdf/INSTALL.html
>
> If you run into any problems, please let us know and we'll try to help.
>
> Ed
>
> --
> Edward H. Hill III, PhD
> office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
> Cambridge, MA 02139-4307
> emails: eh3 at mit.edu ed at eh3.com
> URLs: http://web.mit.edu/eh3/ http://eh3.com/
> phone: 617-253-0098
> fax: 617-253-4464
>
> _______________________________________________
> 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