Compile from source
No pre-compiled version of htrdr is provided;
it must be compiled directly from its source tree.
A simple way is to rely on
star-build, which automates the
build and installation of htrdr and its dependencies from source code.
Prerequisites
To build htrdr with star-build, first make sure your system has the
following prerequisites:
- POSIX shell
- POSIX make
- curl
- git
- mandoc
- pkg-config
- sha512sum
- GNU Compiler Collection in version 8.3 or higher
- netCDF4 library and headers
- OpenMPI library and headers in version 2 or higher
Build
Assuming that the aforementioned prerequisites are available, the build procedure is summed up to:
git clone git://git.meso-star.com/star-build.git
cd star-build
make \
PREFIX=~/htrdr_0.12 \
BUILD=src/rad-apps/htrdr_0.12.sh
With PREFIX defining the path where htrdr will be installed and
BUILD defining the installation script to be run.
By default, the whole htrdr project is built but you may prefer to
deploy htrdr only for a specific application, i.e. only for
atmospheric radiative transfer, combustion processes or planetary
science.
For example, to install only the atmospheric part of htrdr:
make \
PREFIX=~/htrdr_0.12 \
BUILD=src/rad-apps/htrdr_0.12.sh \
ATMOSPHERE=ENABLE \
COMBUSTION=DISABLE \
PLANETS=DISABLE
Run
Evaluate the installed profile file in the current
shell to register htrdr against it. You can then run
htrdr and consult its manual pages:
. ~/htrdr_0.12/etc/profile
htrdr -h
man htrdr
Refer to the Starter Packs
(atmosphere,
combustion or
planets)
to quickly run a htrdr calculation; these archives provide input data
and scripts that are good starting points to use htrdr.