[English | Japanese] [GFD Dennou Club | Gtool4 Project]
This program is operated by following environments.
gt4f90io support following data format.
To use gt4f90io, following softwares should be installed.
If you use above Debian package to install netCDF, you need "netcdfg-dev" package too. (Parhaps you can get by "apt-get").
Following softwares should be installed for generating documentations. But, if you get from gt4f90io TGZ package, documentations are already generated.
Make an empty directory, and extract archive. A directory `gt4f90io-version' created at the current working directory.
$ tar xvzf gt4f90io-current.tgz
Specify Fortran compiler to environmental variable FC . For example, if you use "frt",
sh, bash
$ export FC=frt
csh, tcsh
$ setenv FC frt
Specify Fortran compiler options for optimization and debug to environmental variable FFLAGS . For example, if you set options for automatic optimization and automatic parallelization to "frt",
sh, bash
$ export FFLAGS="-Kfast,parallel"
csh, tcsh
$ setenv FFLAGS "-Kfast,parallel"
Move created directroy, and excute ` ./configure
'.
If your path of netCDF library is `/usr/local/netcdf/lib/libnetcdf.a', you should set options as follow.
A configure file `Config.mk' created at the current working directory.
$ ./configure --with-netcdf=/usr/local/netcdf/lib/libnetcdf.a
config.cache
is also created with Config.mk
.
This file stores arguments of options.
When you execute ./configure
again, config.cache
is loaded
automatically.
If you nullify previous settings, do following command.
$ make distclean
If you use Fujitsu Fortran compiler in Debian GNU/Linux,
copy "Config.cache.debian-ffc*" to config.cache
and
execute ./configure
. So, locations of libraries are
specified automatically.
$ cp Config.cache.debian-ffc5 config.cache $ ./configure
If you want to change directory to which the library and the module, etc.
are installed, please set --help
option as follow. Available
options are showed.
$ ./configure --help
Descriptions about principal options are listed below.
--with-netcdf=
ARG--prefix=
ARG /usr/local/gt4f90io
.
--libdir=
ARG /usr/local/gt4f90io/lib
.
--includedir=
ARG /usr/local/gt4f90io/include
.
--bindir=
ARG /usr/local/gt4f90io/bin
.
--with-docdir=
ARG /usr/local/gt4f90io/doc
.
--with-fc=
ARGconfig.cache
.
(Once config.cache
is created, shell variable "$FC" is ignored).
--with-fflags=
ARG--with-gt4libname=
ARGlib
<ARG>.a
.
Default value is gt4f90io
, so library name becomes
libgt4f90io.a
.
--with-gt4suffix=
ARG ffc5
when others are default,
prefix of installdir becomes /usr/local/gt4f90io-ffc5
,
library name becomes libgt4f90io-ffc5.a
,
executable files become gt4frt.ffc5
, gt4config.ffc5
.
--with-lang_conform_check=
ARG95
" is valid.
The compiler that can be used is limited.
--enable-debug
--with-abort=
ARGabort, errtra-setrcd, exit, setrcd, stop
to
ARG.
Default value is abort
.
Edit `Config.mk
' manually, if you want to change.
FC : Fortran Compiler SYSFFLAGS : Flags needed when compiled and linked SYSLDFLAGS : Flags needed when linked SYSLDLIBS : Libraries needed when linked F90MODTYPE : Information of Modules (std.mod, HP.mod, fqs.mod, intel.d, hitachi.f90) DEST_LIB : Directory to which the library file is installed DEST_INC : directory to which the module files are installed DEST_BIN : directory to which the executable files are installed DEST_DOC : directory to which the documantation files are installed MODS : Extensions of Module Files used when "make clean" AR : Archive command
In current directory, execute following command.
$ make
To generate documentations, execute following command in current directory. If you get from gt4f90io TGZ package, documentations are already generated.
$ make doc
In current directory, execute following command. If you install to system, you need to be administrator. (By default, you install to system).
# make install
If you want to install documentation files, execute following command.
# make install-doc
In current directry, execute following command.
If message " *** Compilation and installation are succeeded !! ***
"
are showed without error, installation is completed.
$ make test-installed