Download KSPECTRUM version 1.2.0 User Manual

Transcript
3
1
Getting started
The first thing you should do is to declare your fortran compiler in the
F77 environment variable. In order to do so, you have to export the F77
environment variable in your .bashrc, .cshrc or .profile file; for instance, add
the following line into your .bashrc or .profile file:
export F77=”gfortran’’
in case you are not using the gfortran compiler, replace “gfortran” by
your local fortran compiler if needed (ifort, pgf, ...)
Then you need to type source .bashrc in order to take the modifications
into account. Replace “.bashrc” by whatever you are using. The purpose of
defining the F77 environment variable is to provide the correct compiler to
compilation commands that will be used later by the installation script. If
this variable is not defined, the name of your fortran compiler will be asked
every time a compilation will occur.
You need to use the “install kspectrum.bash” script that is provided with
the archive. This script should be placed in the same directory than the
provided zipped archive. Use the ./install kspectrum.bash command in
order to run it. This script will:
• Untar the archive, if the corresponding version of KSPECTRUM is not
already installed
• Make appropriate links in the newly created directory
• Go into the “data” directory, compile program “make data.exe” and
run in, in order to generate test files “composition.in”, “narrowbands.in”
and “molparam.in” (see section 4.2).
• Remind you to install LBL databases into the “data” directory (see
section 3.5).
Then you can go into the newly created directory (named “kspectrumX.X.X”
with “X.X.X” the version number) to continue the installation.
2
2.1
Description of the code
Production of high-resolution spectrum, full control of the uncertainty
KSPECTRUM has been designed to produce high-resolution spectrum of any
gas mixture, in any thermodynamical conditions, from line-by-line databases.