| 1)-3) | Set up the environment |
| 4) | The executables |
| 5) | The scripts |
| 6) | The configuration files |
| 7) | Launching the model |
| 8) | What happens while the model is running |
| 10) | What to do with the model output |
mkdir
~/gemclim
mkdir ~/listings
mkdir ~/MODEL_EXEC_RUN
| |
On
marvin you will be
running on the machine 'mach=headnode':mkdir -p
/local/fiber1/${USER}/gemclim/EXECDIR |
| |
On
st1/st2/st3 you will be
running on the machine 'mach=st1':mkdir -p
/st1_fs9/${USER}/gemclim/EXECDIR |
In
Dorval you could run on
'maia', 'naos', a Linux machine or cluster, alef... For now let's use
'maia':mach=maiaGo
on
'maia'! The
disk on which you have a lot of temporary disk space will probably be
either be '/fs/dev/mrb/02' or '/fs/dev/mrb/03'. Find the disk you have
a directory on, i.e.: /fs/dev/mrb/03/armn/${USER}mkdir -p
/fs/dev/mrb/03/armn/${USER}/gemclim/EXECDIR
|
On
marvin you will run
everything on 'headnode', although the model output might be stored on
another machine, i.e. st1/st2/st3mkdir -p
/local/sata2/${USER}/gemclim/listings |
On
st1/st2/st3 you will run
everything on 'st1' mkdir -p
/st1_fs9/${USER}/gemclim/listings |
| In
Dorval you could, in LAM
mode, run the entry on a Linux machine, i.e. 'copernic', run
the model and
post processing on an AIX cluster, i.e. 'maia', and then store the
output on another
Linux machine, i.e. 'kepler'. 'alef' is the machine handling the transfer of the model in and output to/from maia from/to the machine on which you process or store your data. Therefore you also need to create a listings directory for 'alef'. This means you have to create directories for: copernic, maia, kepler and alef! Go on the, in this case, four machines into the directory '~/listings' and create links like i.e.this one: cd ~/listings ln -s /fs/mrb/03/armn/armnkwi/listings maia |
| When
running in Dorval export these two variables in you '.profile_usr': export RDIAG=/usr/local/env/armnlib/scripts/latest.r.diag export EDITFST=editfst_6.02 |
| If
the
model is run in LAM
mode the entry is usually ran on another machine with another
architecture than the model. In this case there need to be an absolute
for the entry with the
architecture of the entry machine and an absolute for entry and model with the
architecture of the machine were the model will be running. All three absolutes have to be on the machine
from which the model will be launched. |
| The
post
processing can also get started while the model is still running. This
can be useful when there is not enough disk space since this early post
processing reduces the output when ${strip_phy}=1. The post processing is then started every 'cleanup' days (this number is specified by the variable 'climat_cleanup' in your 'configexp.dot.cfg'). |
| When the post processing is done on another machine (${mach} not equal ${xfer}) a job (..._FT_...) will be send to alef which moves the files from ${mach} to ${xfer}. |
| The
diagnostic
job creates the monthly means, time series, and
variances for each individual month in
this
interval. |
mkdir -p
~/gemclim/v_3.3.2/Abs/bcmk
cd ~/gemclim/v_3.3.2/Abs/bcmkcat >
.exper_cour << EOF
RCSPATH="\${gemclim}/RCS_DYN \${gemclim}/RCS_PHY \${gemclim}/RCS_CLASS"
RCSBASE="base"
EOF
absdir=/local/sata2/${USER}/gemclim/Abs/v_3.3.2/bcmk |
absdir=/st1_fs9/${USER}/gemclim/Abs/v_3.3.2/bcmk |
It
is up to you where you
want to put your absolutes and object files. On 'maia' you could put
them i.e. here:absdir=/fs/dev/mrb/03/armn/${USER}/ABS/v_3.3.2/bcmk
|
mkdir
-p ${absdir}/malib${ARCH}
ln -s ${absdir}/malib${ARCH} ln -s
${absdir}/maingemclimdm_${ARCH}_3.3.2.Abs ln
-s
${absdir}/maingemclimntr_${ARCH}_3.3.2.Abs. r.sm.dot
gemclim 3.3.2r.make_exp This
command creates the make file 'Makefile',
the
file 'arbre_de_dependance'
containing a list of all the functions/decks with their included
comdecks as well as
the file 'make_cdk' containing
a list of all the comdecks with the names of the functions/decks they
are included in.make gemclim mkdir -p
~/gemclim/v_3.3.2/Configs/bcmk
cd ~/gemclim/v_3.3.2/Configs/bcmkLAM
60x60: cp
~winger/gemclim/BCMK/v_3.3.2_clim/Configs/LAM_60x60/* . Global
uniform 24x12: cp
~winger/gemclim/BCMK/v_3.3.2_clim/Configs/Global_24x12/* . |
LAM
60x60: cp
~winger/gemclim/BCMK/v_3.3.2_clim/Configs/LAM_60x60/* . Global
uniform 24x12: cp
~winger/gemclim/BCMK/v_3.3.2_clim/Configs/Global_24x12/* . |
At
the moment there is no
example - sorry! |
perl
-pi
-e 's/FOO/$ENV{USER}/g'
configexp.dot.cfgDorval:| Make sure all paths are set correctly! |
Um_lancecd ~/gemclim/v_3.3.2/Abs/bcmk
. r.sm.dot gemclim 3.3.2This will set the
environment variable $gemclim
to the model path.ls
${gemclim}/RCS_DYNls
${gemclim}/RCS_PHYomd_exp
cccmarad.ftnr.make_exp
Compile the modified (or
unmodified) subprogram (create *.f and *.o): make
cccmarad.o If
you modify a comdeck or want to compile all the routines you have in
the directory you should instead use: make objloc
make cleanmake gemclim
To only recompile the model you can also use: make
gemclimdm
To only recompile the entry you can also use: make
gemclimntrcd ../../Configs/bcmkUm_lance