[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #ETU-469275]: How to enable --has-f90 for netcdf-fortran 4.4.2



Hello,

The messages in nf-config are confusing and need to be clarified.  The reason 
it says it does not have f90 support is because it has f03 support.  f03 
support includes f90 support, so you have the functionality you desire.  The 
issue is that the message is unclear.  If you really want f90 support to say 
'yes', you would need to disable f03 support; I am not sure how you would go 
about that.

I hope this helps to clarify,

-Ward


> Full Name: Liu Jianyu
> Email Address: address@hidden
> Organization: CCRS
> Package Version:
> Operating System: SUSE Linux Enterprise Server 11
> Hardware: Intel(R) Xeon(R) CPU E5-2670
> Description of problem: Dear Sir/Madam,
> 
> Compiled netcdf-fortran 4.4.2 on a SUSE Linux Enterprise Server 11 (x86_64) 
> box by Gfortran 4.9.2 with these options
> 
> ./configure \
> --prefix=$PREFIX/netcdf/4.3.3/gnu/4.9.2 \
> CPPFLAGS="-I$PREFIX/netcdf/4.3.3/gnu/4.9.2/include -DpgiFortran" \
> LDFLAGS="-Wl,-rpath=/opt/gcc/4.9.2/snos/lib64  
> -Wl,-rpath=$PREFIX/netcdf/4.3.3/gnu/4.9.2/lib 
> -L$PREFIX/netcdf/4.3.3/gnu/4.9.2/lib" \
> FC=gfortran F77=gfortran F90=gfortran \
> --disable-silent-rules --with-pic
> 
> It compiled without any error and also passed all test with make check.  But 
> the nf-config showed these
> 
> nf-config --all
> 
> This netCDF-Fortran 4.4.2 has been built with the following features:
> 
> --cc        -> gcc
> --cflags    ->  -I/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/include 
> -I/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/include -DpgiFortran
> 
> --fc        -> gfortran
> --fflags    -> -I/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/include
> --flibs     -> -L/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/lib 
> -lnetcdff -Wl,-rpath=/opt/gcc/4.9.2/snos/lib64  
> -Wl,-rpath=/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/lib 
> -L/scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/lib -lnetcdf -lnetcdf
> --has-f90   -> no
> --has-f03   -> yes
> 
> --has-nc2   -> yes
> --has-nc4   -> yes
> 
> --prefix    -> /scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2
> --includedir-> /scratch/singadm/pkg_athena/netcdf/4.3.3/gnu/4.9.2/include
> --version   -> netCDF-Fortran 4.4.2
> 
> My question are
> 
> 1.  why  "--has-f90 -> no ", did I miss certain options ?
> 
> 2.  How to enable --has-f90 ?
> 
> Thanks for your time
> 
> Regards
> 
> Jianyu
> 
> 
> 


Ticket Details
===================
Ticket ID: ETU-469275
Department: Support netCDF
Priority: Normal
Status: Closed