[Wrf-users] compiling p_interp

Dorita Rostkier-Edelstein drostkier at yahoo.com
Thu Aug 23 10:12:52 MDT 2012


Hi Dmitry,

This is what I get:
# 1 "/usr/local/netcdf-pgi/include/netcdf.inc" 1


But the lines

      integer nf_64bit_offset

      parameter (nf_64bit_offset = 512)

are not in the output...

Thanks for your help.

Dorita




________________________________
 From: Dmitry N. Mikushin <maemarcus at gmail.com>
To: Dorita Rostkier-Edelstein <drostkier at yahoo.com> 
Cc: "wrf-users at ucar.edu" <wrf-users at ucar.edu> 
Sent: Thursday, August 23, 2012 9:26 AM
Subject: Re: [Wrf-users] compiling p_interp
 
Dear Dorita,

It should work, because file called netcdf.inc should contain the
appropriate definition.

In order to check that, you can replace INCLUDE 'netcdf.inc' with
#include "netcdf.inc" and run the source file through the C
preprocessor:

cpp p_interp.F90 -I/usr/local/netcdf-pgi/include

The output will list the source code almost like compiler sees it
before the compilation. The following lines should be there:

      integer nf_64bit_offset

      parameter (nf_64bit_offset = 512)

If they are not, then this is the source of the issue.

Could you by chance have another netcdf.inc available from you path?
In this case it will override the one you are trying to load from
-I/usr/local/netcdf-pgi/include

cpp output should give you an exact path for that file, like this:

# 1 "/home/marcusmae/rpmbuild/BUILD/netcdf-4.1.3/build/fortran/netcdf.inc" 1

- D.

2012/8/23 Dorita Rostkier-Edelstein <drostkier at yahoo.com>:
> Hi
>
> I am trying to compile p_interp and this is the message I get:
>
> pgf90 p_interp.F90 -L/usr/local/netcdf-pgi/lib -lnetcdf -lm
> -I/usr/local/netcdf-pgi/include -Mfree -o p_interp
> PGF90-S-0038-Symbol, nf_64bit_offset, has not been explicitly declared
> (p_interp.F90: 248)
>   0 inform,   0 warnings,   1 severes, 0 fatal for p_interp
>
> Any clue?
>
> Thanks,
>
> Dorita
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20120823/aa6ff41c/attachment.html 


More information about the Wrf-users mailing list