[English | Japanese] [GFD Dennou Club | DCPAM Project]
This program is operated by following compilers.
Following softwares should be installed for installing dcpam.
For using debian package.
For compiling source code.
For using debian package.
For compiling source code.
See "README" file in above tar.gz file. (but that is wrote in JAPANESE)
For using debian package.
For compiling source code.
If you get dcpam from CVS. Following softwares should be installed for generating documentations. (But if you get tar.gz package, documentations are already generated).
Make an empty directory, and extract archive. A directory `dcpam3-version' created at the current working directory.
$ tar xvzf dcpam3-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
'.
Specify library files in Libraries needed for compile to following options.
--with-ispack=
ARG--with-netcdf=
ARG--with-gt4f90io=
ARG--with-spml=
ARGFor exapmle, specify as follow. This command will generate
Config.mk
.
$ ./configure --with-ispack=/usr/local/lib/libisp.a \ --with-netcdf=/usr/local/lib/libnetcdf.a \ --with-gt4f90io=/usr/local/lib/gt4f90io/lib/libgt4f90io.a \ --with-spml=/usr/local/lib/spml/lib/libspml.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.
--prefix=
ARG /usr/local/dcpam3
.
--libdir=
ARG /usr/local/dcpam3/lib
.
--includedir=
ARG /usr/local/dcpam3/include
.
--bindir=
ARG /usr/local/dcpam3/bin
.
--with-docdir=
ARG /usr/local/dcpam3/doc
.
--with-fc=
ARGconfig.cache
.
(Once config.cache
is created, shell variable "$FC" is ignored).
--with-fflags=
ARG--with-dcpam_lib_name=
ARGlib
<ARG>.a
.
Default value is dcpam3
, so library name becomes
libdcpam3.a
.
--with-dcpam_suffix=
ARG ffc5
when others are default,
prefix of installdir becomes /usr/local/dcpam3-ffc5
,
library name becomes libdcpam3-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
Edit unspecified item in `Config.mk
' manually.
Followings are main items.
Config.mk
is.
In current directory, execute following command.
$ make
To generate documentations, execute following command in current directory. If you get from dcpam3 TGZ package, documentations are already generated.
$ make doc
Move "practice" directory.
$ mv practice
And edit "init.nml". This file is NAMELIST file for initial data. After edit, do following command. Then initial data "init.nc" will be generated.
$ make init
Next, edit "dcpam.nml", and specify step interval and output variable, output file, and so on. Finally do following command.
$ make run
Error messages are printed in "dcpam.log", and normal messages are printed standard output. If you want to write normal messages to file, do as follow.
$ make run > dcpam.msg
Now, debug messages are printed in "dcpam.log" too. So this file become large.
Result data are located in "result" directory.
If you install dcpam3 libraries, modules, executable files to system, in current directory, execute following command. You need to be administrator.
# make install
If you want to install documentation files, execute following command.
# make install-doc