Next: 3.5 Fortran Files
Up: 3 Program Files, Installation,
Previous: 3.3 Directory Structure
Contents
Index
3.4 Old Setup File for Paths
For the previous version of CO5BOLD all paths were stored in environment
variables and could be set with the scripts
setarcdeppaths.sh
or
setarcdeppaths.csh .
These variables are now ignored by the configure script that produces the
Makefile to generate the CO5BOLD executable rhd.exe
.
However, they are still used e.g. by the makefile that produces the executables that
are called by the UIO scripts.
The environment variables for the UIO routines can be e.g.
UIOSRCPATH=/home/user/for/uio/f90
UIOEXEPATH=/home/user/for/uio/f90/sun .
A script to set all necessary variables and paths can be (here for the Bourne shell)
#!/bin/sh
#
# -- Disk where all Fortran programs are located --
FORTRANDISK=$HOME/for ; export FORTRANDISK
#
if [ `uname -s` = "craSH" ]; then
# -- Kiel: craSHi --
#
UIOMAC=uio_mac_crayxmp_module ; export UIOMAC
RHDMAC=rhd_mac_cray_module ; export RHDMAC
elif [ `uname -s` = "craSH" ]; then
# -- Kiel: craSH --
#
UIOMAC=uio_mac_crayts_module ; export UIOMAC
RHDMAC=rhd_mac_cray_module ; export RHDMAC
elif [ `uname -m` = "SR8000" ]; then
# -- Potsdam: Hitachi --
#
UIOMAC=uio_mac_hitachi_module ; export UIOMAC
RHDMAC=rhd_mac_hitachi_module ; export RHDMAC
else
# -- Default: Suns MAC files --
#
UIOMAC=uio_mac_sun_module; export UIOMAC
RHDMAC=rhd_mac_sun_module; export RHDMAC
fi
#
# -- Architecture dependent sub directory names for object file and executables --
if [ `uname -s` = "craSH" ]; then
MAC=crash
elif [ `uname -s` = "craSHi" ]; then
MAC=crashi
elif [ `uname -s` = "SunOS" ]; then
MAC=sun
elif [ `uname -s` = "HP-UX" ]; then
if [ `uname -m` = "ia64" ]; then
MAC=hpia64
else
MAC=hp
fi
elif [ `uname -s` = "Linux" ]; then
MAC=linux
elif [ `uname -n` = "vx1" ]; then
MAC=vx1
else
MAC=sgi
fi
#
# -- Individual libraries --
# -- Timing --
TIMEPATH=$FORTRANDISK/time/f90 ; export TIMEPATH
TIMESRCPATH=$TIMEPATH ; export TIMESRCPATH
#
# -- Constants & units --
CONPATH=$FORTRANDISK/con/f90 ; export CONPATH
CONSRCPATH=$CONPATH ; export CONSRCPATH
#
# -- uio --
UIOPATH=$FORTRANDISK/uio ; export UIOPATH
UIOSRCPATH=$UIOPATH/f90 ; export UIOSRCPATH
#
# -- String handling --
STRPATH=$FORTRANDISK/mat/str ; export STRPATH
STRSRCPATH=$STRPATH ; export STRSRCPATH
#
# -- Math --
MATPATH=$FORTRANDISK/mat ; export MATPATH
MATSRCPATH=$MATPATH/f90 ; export MATSRCPATH
#
# -- gas --
GASPATH=$FORTRANDISK/eos/gas ; export GASPATH
GASSRCPATH=$GASPATH ; export GASSRCPATH
#
# -- EOS --
EOSPATH=$FORTRANDISK/eos ; export EOSPATH
EOSSRCPATH=$EOSPATH/f90 ; export EOSSRCPATH
#
# -- Opacity --
OPTAPATH=$FORTRANDISK/opa/opta ; export OPTAPATH
OPTASRCPATH=$OPTAPATH ; export OPTASRCPATH
#
# -- hydrostatic --
HSTPATH=$FORTRANDISK/hd/qf15 ; export HSTPATH
HSTSRCPATH=$HSTPATH ; export HSTSRCPATH
#
# -- rad --
RADPATH=$FORTRANDISK/rad/hdrad ; export RADPATH
RADSRCPATH=$RADPATH ; export RADSRCPATH
#
# -- RHD --
RHDPATH=$FORTRANDISK/hd/rhd ; export RHDPATH
RHDSRCPATH=$RHDPATH ; export RHDSRCPATH
#
# -- RHDB --
RHDBPATH=$FORTRANDISK/hd/rhdb ; export RHDBPATH
RHDBSRCPATH=$RHDBPATH ; export RHDBSRCPATH
#
# -- HDW --
HDWPATH=$FORTRANDISK/hd/hdw ; export HDWPATH
HDWSRCPATH=$HDWPATH ; export HDWSRCPATH
#
# -- DUST --
DUSTPATH=$FORTRANDISK/hd/dust ; export DUSTPATH
DUSTSRCPATH=$DUSTPATH ; export DUSTSRCPATH
#
# -- MHD --
MHDPATH=$FORTRANDISK/hd/mhd ; export MHDPATH
MHDSRCPATH=$MHDPATH ; export MHDSRCPATH
#
# -- mean --
MEANPATH=$FORTRANDISK/hd/mean ; export MEANPATH
MEANSRCPATH=$MEANPATH ; export MEANSRCPATH
#
# -- Architecture dependent directories for object file and executables --
TIMEEXEPATH=$TIMEPATH/$MAC ; export TIMEEXEPATH
CONEXEPATH=$CONPATH/$MAC ; export CONEXEPATH
UIOEXEPATH=$UIOSRCPATH/$MAC ; export UIOEXEPATH
STREXEPATH=$STRPATH/$MAC ; export STREXEPATH
MATEXEPATH=$MATSRCPATH/$MAC ; export MATEXEPATH
GASEXEPATH=$GASPATH/$MAC ; export GASEXEPATH
EOSEXEPATH=$EOSSRCPATH/$MAC ; export EOSEXEPATH
OPTAEXEPATH=$OPTAPATH/$MAC ; export OPTAEXEPATH
HSTEXEPATH=$HSTPATH/$MAC ; export HSTEXEPATH
RADEXEPATH=$RADPATH/$MAC ; export RADEXEPATH
RHDEXEPATH=$RHDPATH/$MAC ; export RHDEXEPATH
RHDBEXEPATH=$RHDBPATH/$MAC ; export RHDBEXEPATH
HDWEXEPATH=$HDWPATH/$MAC ; export HDWEXEPATH
DUSTEXEPATH=$DUSTPATH/$MAC ; export DUSTEXEPATH
MHDEXEPATH=$MHDPATH/$MAC ; export MHDEXEPATH
MEANEXEPATH=$MEANPATH/$MAC ; export MEANEXEPATH
This script can be executed with
. $HOME/bin/setarcdeppaths.sh
This line can be put e.g. into the .bashrc
file.
Some lines can be edited to account for individual choices and the
target machine.
With
FORTRANDISK=$HOME/for ; export FORTRANDISK
the master directory is specified.
With
UIOMAC=uio_mac_sun_module; export UIOMAC
RHDMAC=rhd_mac_sun_module; export RHDMAC
you set some machine dependent modules. The sun
modules
work for most machines (e.g. for Linux PCs).
With
MAC=linux
you specify the name of the subdirectories with the makefiles.
The other lines only have to be edited if you want to organize
the directories in a completely different way. In this case you have to adapt
the configure script, too.
Next: 3.5 Fortran Files
Up: 3 Program Files, Installation,
Previous: 3.3 Directory Structure
Contents
Index