| 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| |
At
Ouranos/UQAM you will be
running on 'mach=headnode':mkdir -p /local/fiber1/${USER}/gemclim/EXECDIR; ln -s
/local/fiber1/${USER}/gemclim/EXECDIR ~/gemclim/headnode |
In
Dorval you could run on
'maia', 'naos', a Linux machine or cluster, pollux... 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; ln -s
/fs/dev/mrb/03/armn/${USER}/gemclim/EXECDIR ~/gemclim/${mach}
|
At
Ouranos/UQAM you will run
everything on the 'headnode' and also store the output there:mkdir -p
/local/sata1/${USER}/gemclim/listings;
ln -s /local/sata1/${USER}/gemclim/listings ~/listings/headnode |
| 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'. 'pollux' 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 'pollux'. This means you have to create directories for: copernic, maia, kepler and pollux! 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 pollux which moves the files from ${mach} to ${xfer}. |
| Your output files will get moved in the directory ${xfer}/${exp}. |
| Your output will get re-organized: The 3-D physic fields
will be interpolated
from
model to pressure levels, a few new variables will get calculated and
in
the end there will be only two types of files: md-files : fields on model levels (now only 2-D fields) pr-files : fields on pressure levels all of which will be put one directory up into ${xfer}/${exp}. |
| The diagnostics
will start in ${xfer},
again on up to 8 cpu's. But this job is only launched after the model
has run for the
requested (interval) number
of months, as specified in your 'configexp.dot.cfg' and after the
last
post processing job has finished. The diagnostic
job creates the monthly means, time series,
variances and several covariances for each individual months in this
interval. After this step, the diagnostic files, as well as the md- and pr-files, will be archived and transfered to 'arch_mach' into the directory 'archdir', again as specified in your 'configexp.dot.cfg'. |
mkdir -p
~/gemclim/v_3.3.0/Abs/bcmk; cd ~/gemclim/v_3.3.0/Abs/bcmkouv_exp base
-RCSPATH
"/home/armnlib/env/armnlib/modeles/GEMCLIM/v_3.3.0/RCS_DYN
/home/armnlib/env/armnlib/modeles/GEMCLIM/v_3.3.0/RCS_PHY" |
ouv_exp v_3.3.0
-RCSPATH
"/usr/local/env/armnlib/modeles/GEMCLIM/v_3.3.0/RCS_DYN
/usr/local/env/armnlib/modeles/GEMCLIM/v_3.3.0/RCS_PHY" |
absdir=/local/sata1/${USER}/gemclim/Abs/v_3.3.0/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.0/bcmk
|
mkdir
-p ${absdir}/malib${ARCH}; ln -s ${absdir}/malib${ARCH} ln -s ${absdir}/maingemclimdm_${ARCH}_3.3.0.Abs ln -s ${absdir}/maingemclimntr_${ARCH}_3.3.0.Abs. r.sm.dot
gemclim
3.3.0r.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.0/Configs/bcmk; cd ~/gemclim/v_3.3.0/Configs/bcmkcp
/local/sata1/data/configs/gemclim_3.3.0-lam/* . |
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_launchcd ~/gemclim/v_3.3.0/Abs/bcmk
. r.sm.dot gemclim 3.3.0This 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_launch