[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #ZVG-557168]: information
- Subject: [netCDF #ZVG-557168]: information
- Date: Sun, 14 Jun 2009 15:03:33 -0600
> i installed the netCDF version 3.6.3 but i don't know if F90 installed or
> not, how i can know that i have f90
If you installed from source, you can run "make check" and the f90 tests will be
included in all the tests that are run. They appear like this:
...
Making check in f90
make[1]: Entering directory `/shecky/n362_test/f90'
/bin/sh ../libtool --mode=compile gfortran -I../libsrc -I. -g -O2 -c -o
typeSizes.lo typeSizes.f90
libtool: compile: gfortran -I../libsrc -I. -g -O2 -c typeSizes.f90 -o
typeSizes.o
/bin/sh ../libtool --mode=compile gfortran -I../libsrc -I. -g -O2 -c -o
netcdf.lo netcdf.f90
libtool: compile: gfortran -I../libsrc -I. -g -O2 -c netcdf.f90 -o netcdf.o
/bin/sh ../libtool --mode=link gfortran -I../libsrc -I. -g -O2 -o
libnetcdff90.la typeSizes.lo netcdf.lo
libtool: link: ar cru .libs/libnetcdff90.a typeSizes.o netcdf.o
libtool: link: ranlib .libs/libnetcdff90.a
libtool: link: ( cd ".libs" && rm -f "libnetcdff90.la" && ln -s
"../libnetcdff90.la" "libnetcdff90.la" )
make[1]: Leaving directory `/shecky/n362_test/f90'
...
Another way you could tell is by trying to compile and run the F90 example
programs here:
http://www.unidata.ucar.edu/software/netcdf/examples/programs/
You could also see if one of the F90 functions is in the installed library, by
running a tool such as "nm", for
example:
$ nm -A /usr/local/lib/libnetcdf.a | grep nf90_open
/usr/local/lib/libnetcdf.a[netcdf4.o]: [948] | 865404| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.nelems_in
/usr/local/lib/libnetcdf.a[netcdf4.o]: [952] | 865420| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.nelems_out
/usr/local/lib/libnetcdf.a[netcdf4.o]: [947] | 865400| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.preemption_in
/usr/local/lib/libnetcdf.a[netcdf4.o]: [953] | 865424| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.preemption_out
/usr/local/lib/libnetcdf.a[netcdf4.o]: [950] | 865412| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.ret
/usr/local/lib/libnetcdf.a[netcdf4.o]: [949] | 865408| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.size_in
/usr/local/lib/libnetcdf.a[netcdf4.o]: [951] | 865416| 4|OBJT |GLOB
|0 |4 |.XBAWHndEKZKKUBc.netcdf.nf90_open.size_out
/usr/local/lib/libnetcdf.a[netcdf4.o]: [946] | 133840| 619|FUNC |GLOB
|0 |2 |netcdf.nf90_open_
/usr/local/lib/libnetcdf.a[netcdf4.o]: [957] | 134464| 110|FUNC |GLOB
|0 |2 |netcdf.nf90_open_mp_
/usr/local/lib/libnetcdf.a[netcdf4.o]: [959] | 134576| 110|FUNC |GLOB
|0 |2 |netcdf.nf90_open_par_
If you installed shared libraries, the F90 functions might be in a separate
library, such as
/usr/local/lib/libnetcdff.a
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: ZVG-557168
Department: Support netCDF
Priority: Normal
Status: Closed