[Wrf-users] compiling p_interp
Dmitry N. Mikushin
maemarcus at gmail.com
Thu Aug 23 09:26:25 MDT 2012
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
>
More information about the Wrf-users
mailing list