[MITgcm-support] mnc questions
Ed Hill
ed at eh3.com
Fri Dec 16 02:02:11 EST 2005
On Fri, 2005-12-16 at 00:03 -0600, Michael Schaferkotter wrote:
> hi ed:
>
> the genmake tells the story:
>
> === Checking system libraries ===
> Do we have the system() command using pgf77... yes
> Do we have the fdate() command using pgf77... no
> Do we have the etime() command using pgf77... yes
> Can we call simple C routines (here, "cloc()") using pgf77... no
> Can we use stat() through C calls... no
> Can we create NetCDF-enabled binaries... yes
>
> 'no' to 'Can we use stat()...'.
>
> the mnc_max_fsize should have been set to around 20MB. i/m trying to get one set of variables per dump per .nc file.
>
> the remark about the .nc files being the same size was in regard to the fact that i had altered mnc_max_fsize and the
> 'before' and 'after' sizes didn/t change. now we know why...because 'we cannot use stat() through C calls...'.
>
> am i now to point of customizing the mnc pkg code?
Hi Michael,
No, I don't think it requires any coding. I think we just need to
figure out how to coax your PGI compiler into calling C subroutines from
Fortran. And I think all that means is editing your optfile so that it
either uses the PGI C compiler by setting:
CC='pgcc'
or by setting the correct name-mangling syntax such as:
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
when using another C compiler such as gcc. Please see the syntax in the
existing optfiles in:
MITgcm/tools/build_options/*
for examples of the above settings.
Ed
ps - We have v5.2 of the PGI compiler suite (which includes the Fortran
and C compilers) installed on some of our Fedora Core 3 systems and I
just confirmed that it is able to use the C-provided stat() function
(and is correctly tested by genmake2) when using the PGI C compiler. So
it certainly *can* be done with the PGI compilers on at least some Intel
systems with the optfile:
MITgcm/tools/build_options/linux_ia32_pgf77+authors_fc3
--
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
More information about the MITgcm-support
mailing list