Creating HL5.1.2 environment and a t-shell
using HL_ENV_SYS: /home/met/hirlam/SGI/hl512
------------------------------------------------------------------
~/SGI/hl512/OMC >
~/SGI/hl512/OMC > ls -l
total 40
24 -rw-r--r-- 1 keerola
met
8899 Dec 17 08:47 ENVIRONMENT
0 drwxr-xr-x 2 keerola
met
28 Dec 13 08:05 alys/
0 drwxr-xr-x 2 keerola
met
47 Dec 13 08:05 grdy/
0 drwxr-xr-x 2 keerola
met
28 Dec 13 08:05 grw1/
8 -rw-r--r-- 1 keerola
met
6 Dec 17 08:53 hl_vn
0 drwxr-xr-x 2 keerola
met
28 Dec 13 08:05 nasu/
8 -rw-r--r-- 1 keerola
met
62 Dec 17 08:47 progress.log
0 drwxr-xr-x 2 keerola
met
106 Dec 13 08:05 prpo/
0 drwxr-xr-x 2 keerola
met
82 Dec 13 08:11 scripts/
0 drwxr-xr-x 2 keerola
met
28 Dec 13 08:05 span/
~/SGI/hl512/OMC > cat hl_vn
5.1.2
~/SGI/hl512/OMC > ls -l scripts
total 32
8 -rwxr-x--- 1 keerola
met
1022 Dec 13 08:05 Env_domain*
8 -rwxr-x--- 1 keerola
met
2516 Dec 13 08:05 Env_expdesc*
8 -rwxr-x--- 1 keerola
met
1582 Dec 13 08:05 Env_input*
8 -rwxr-x--- 1 keerola
met
1808 Dec 13 08:11 hosts.h*
~/SGI/hl512/OMC >
~/SGI/hl512/OMC > cat progress.log
DTG=2001121012 export DTG
~/SGI/hl512/OMC > ps -u keerola
PID
TTY
TIME CMD
1162970 pts/4 12:23 hlprog32.
1163096 pts/6 0:00 tcsh
1163139 pts/4 0:00 Execute.j
928173 pts/4 0:30 perl5.004
1163702 pts/4 0:02 mpirun
1164118 pts/6 0:00 tcsh
1164166 pts/4 0:00 hlprog32.
1164235 pts/4 8:33 hlprog32.
1164350 pts/4 0:00 Execute.j
917154 pts/4 0:00 tcsh
1164665 pts/4 0:03 hlprog32.
1164764 pts/4 12:23 hlprog32.
1164795 pts/4 9:10 hlprog32.
1165117 pts/4 0:00 Prog
1165141 pts/4 0:00 perl5.004
1165175 pts/4 0:00 csh
1165316 pts/4 12:25 hlprog32.
1165334 pts/4 8:34 hlprog32.
1165396 pts/4 9:50 hlprog32.
1165429 pts/4 0:00 hlprog32.
1165621 pts/4 0:00 hlprog32.
1165831 pts/4 12:26 hlprog32.
913000 pts/4 0:00 tcsh
1167197 pts/4 0:00 ps
1162553 pts/4 0:00 hlprog32.
~/SGI/hl512/OMC > cd scripts/
/home/met/keerola/SGI/hl512/OMC/scripts
~/SGI/hl512/OMC/scripts > ls -l
total 32
8 -rwxr-x--- 1 keerola
met
1022 Dec 13 08:05 Env_domain*
8 -rwxr-x--- 1 keerola
met
2516 Dec 13 08:05 Env_expdesc*
8 -rwxr-x--- 1 keerola
met
1582 Dec 13 08:05 Env_input*
8 -rwxr-x--- 1 keerola
met
1808 Dec 13 08:11 hosts.h*
~/SGI/hl512/OMC/scripts >
~/SGI/hl512/OMC/scripts > cat Env_domain
# times:
DTGBEG=${DTGBEG-$DTG} # first date/time of experiment
DTGEND=${DTGEND-$DTG} # stopcriterion for experiment
# grid/area
NLON=194
NLAT=140
NLEV=31
NBNDRY=8
SOUTH=-11.4
WEST=-9.0
NORTH=16.4
EAST=29.6
POLAT=-30.0
POLON=0.0
#
# postprocessing of forecast results
WRITUPTIMES="00 03 06 12 18 24 30 36 42 48"
# write-up times for history files:
# space-separated, in double quotes
NLONPP=$NLON
# size of postprocessed subarea
NLATPP=$NLAT
IMINPP=1
# SW corner of postprocessed subarea
JMINPP=1
# ----------------------------------------------------rcs stuff
# $Revision: 1.3 $, checked in by $Author: GerardCats $ at $Date:
2001/06/25 06:48:34 $
# $Log: Env_domain,v $
# Revision 1.3 2001/06/25 06:48:34 GerardCats
# Add 00 to WRITUPTIMES (Note: fc00 replaces in00 if DFI or NMI)
#
# Revision 1.2 1999/09/13 08:16:30 GerardCats
# NLON became 114, to match NPBPTS=2; WEST,EAST changed accordingly
#
# Revision 1.1 1999/04/19 08:19:36 GCats
# Created from $HL_SCR, HIRLAM version 4.3.5, by Gerard Cats
#
~/SGI/hl512/OMC/scripts > cat Env_expdesc
CYCLE=${CYCLE-:an:fo:} # :analysis:forecast:observations:
VERIFY=:ve:ob:
# :verify:obs_statistics:
PP=:an:fo:
# :analysis:forecast:
SEND=
# :observations:boundaries:analysis:forecast:orography:
# FCSTAT=:03:06: # Stat
package also invoked for +3 and +6
MORE_CYCLES=no
# 'yes' if all cycles are to be run within one job
LL=${LL-06}
# forecast length (hrs)
FCINT=06
# cycle interval (hrs)
ANALYSIS=OI
# OI, 3DVAR, NONE
export ANALYSIS #for
use by mini-SMS --prepare
ERS_UWI=no
# use ERS-UWI
PRESCAT=no
# apply PRESCAT
LDFI=yes
# DFI scheme
NDFI=3
# DFI filter method, 3 for TDFI(default), 2 for DDFI, 1 for
ADFI
IDFI=no
# Incremental DFI? yes for IDFI, no for full DFI (default)
LNMI=no
# NMI initialization
NLSLAN=no
# 'no' for Euler, 'yes' for semi-Lagrangian
NPBPTS=0
# Number of passive boundary points
NDTIME=120
# dynamics time step (s)
NLTIME=no
# 'yes' if check on timestep length
NDTPHYS=$NDTIME
# by default equal to dynamics timestep
TIMESU=3599
NDTVDIF=$NDTIME
# by default equal to dynamics timestep
SURF_SCHEME=SIMPLE # ISBA
BDINT=06
# interval between boundaries
STRATEGY=available # which boundary
strategy to follow
# ----------------------------------------------------rcs stuff
# $Revision: 1.11 $, checked in by $Author: XiaohuaYang $ at $Date:
2001/06/25 06:4
8:34 $
# $Log: Env_expdesc,v $
# Revision 1.11 2001/06/25 06:48:34 XiaohuaYang
# Initialisation options IDFI (incremental), NDFI (filter method),
LNMI
#
# Revision 1.10 2001/05/28 07:55:05 OleVignes
# Add options for 3DVAR or no_analysis, but use OI
#
# Revision 1.9 2000/11/13 08:03:50 GerardCats
# Avoid ERS and PRESCAT: not available yet from MARS
#
# Revision 1.8 2000/06/26 07:00:52 GerardCats
# Switch on semi-Lagrangian, default time step is 10 minutes
#
# Revision 1.7 2000/06/05 07:12:00 GerardCats
# Add ERS_UWI and PRESCAT options
#
# Revision 1.6 1999/12/13 08:56:31 ToonMoene
# Set surface scheme to HIRLAM 2 SURF: SURF_SCHEME=SIMPLE
#
# Revision 1.5 1999/10/25 07:23:25 GerardCats
# Go for DFI but not for semi-Lagrangian
#
# Revision 1.4 1999/09/22 06:58:16 GerardCats
# Go back to Eulerian (NLSLAN=no), with DTIME=240
#
# Revision 1.3 1999/09/20 06:57:12 RayMcGrath
# Add option for the Digital Filter Initialization (DFI) via flag
LDFI.
#
# Revision 1.2 1999/09/13 08:16:31 GerardCats
# Number of passive boundary points NPBPTS=2 (new), NLSAN=yes,
DTIME=900
#
# Revision 1.1 1999/04/19 08:19:36 GCats
# Created from $HL_SCR, HIRLAM version 4.3.5, by Gerard Cats
#
~/SGI/hl512/OMC/scripts > cat Env_input
PAREXP=$EXP;PARDIR=$HL_ARC/$PAREXP
# this exp (EXP) is parallel to PAREXP
AEEXP=$PAREXP; AEDIR=$HL_ARC/$AEEXP # 1st
analysis errs
BDEXP=ECF ;
BDDIR=$HL_ARC/$BDEXP
# boundary files
BLEXP=$PAREXP; BLDIR=$HL_ARC/$BLEXP # 1st
black list
CLEXP=$PAREXP; CLDIR=$HL_ARC/$CLEXP #
climate
files
FFEXP=$PAREXP
# 1st first-guess
OBEXP=OBF ;
OBDIR=$HL_ARC/$OBEXP
# observation files
VFEXP=OBF ;
VFDIR=$HL_ARC/$VFEXP
# observations to verify against
MARS=${MARS-$HL_REF_CP/tst}
# central directory with obs (local installations)
#INBDEXP=tst; INBDDIR=$HL_REF_CP/$INBDEXP # this is valid for
the
test data set
NESTING=n-a
# for nesting, set INBDDIR and INBDEXP
# appropriately; eg, revive next line:
INBDEXP=ECF; INBDDIR=$HL_ARC/$INBDEXP # nestor experiment
OLDIR=$CLDIR
# local directory for ORO and LSM:
MARSORO=$HL_ARC/ORO/oro_rot_0.40.4
#MARSORO='// included
//'
# nestor model orography is in bd file
MARSLSM=$HL_REF_CP/dat/oro/lsm2131.51.5m_r1
# nestor model orography file
# ----------------------------------------------------rcs stuff
# $Revision: 1.4 $, checked in by $Author: GerardCats $ at $Date:
2001/05/28 07:55:05 $
# $Log: Env_input,v $
# Revision 1.4 2001/05/28 07:55:05 GerardCats
# Assume local installation have the observations in tst
#
# Revision 1.3 1999/11/15 07:55:34 GerardCats
# Add OLDIR, normally equal to CLDIR
#
# Revision 1.2 1999/10/25 07:23:26 GerardCats
# The export reference system has orography in the boundary file
#
# Revision 1.1 1999/04/19 08:19:36 GCats
# Created from $HL_SCR, HIRLAM version 4.3.5, by Gerard Cats
#
/tmp/keerola/hl512/hl_data/OMC > cd $HL_DATA
/tmp/keerola/hl512/hl_data/OMC
/tmp/keerola/hl512/hl_data/OMC > ls -l
total 4368
8 drwxr-xr-x 2 keerola
met
4096 Dec 17 11:27 20011210_06/
8 drwxr-xr-x 2 keerola
met
4096 Dec 17 11:53 20011210_12/
0 drwxr-xr-x 2 keerola
met
112 Dec 17 10:46 20011210_18/
0 drwxr-xr-x 2 keerola
met
112 Dec 17 10:47 20011211_00/
0 drwxr-xr-x 2 keerola
met
112 Dec 17 10:47 20011211_06/
40 -rw-r--r-- 1 keerola
met
19870 Dec 17 10:45 HL_Prepare_00.html
0 drwxr-x--x 7 keerola
met
104 Dec 17 11:26 OMC/
0 drwxr-x--- 2 keerola
met
125 Dec 17 11:41 WD1165117/
0 lrwxr-xr-x 1 keerola
met
31 Dec 17 10:46 ae00000000 -> /tmp/keerola/PARKDIR/ae00000000
1320 -rw-r--r-- 1 keerola
met
672000 Dec 17 10:42 cl00120000
2408 -rw-r--r-- 1 keerola
met
1231207 Dec 17 10:42 cl00120000.hdf
0 drwxr-xr-x 3 keerola
met
24 Dec 17 10:38 dat/
128 -rw-r--r-- 1 keerola
met
36212 Dec 17 11:57 hirlam.check
56 -rw-r--r-- 1 keerola
met
26254 Dec 17 10:38 hirlam.def
120 -rw-r--r-- 1 keerola
met
58443 Dec 17 10:38 hirlam.html
128 -rw-r--r-- 1 keerola
met
54107 Dec 17 11:54 hirlam.log
128 -rw-r--r-- 1 keerola
met
123 Dec 17 10:38 mSMS.log
8 drwxr-xr-x 24 keerola
met
4096 Dec 17 11:27 metis/
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:45 mf200112100600 ->
/tmp/keerola/PARKDIR/ECF/mf200112100600
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:45 mf200112100600m ->
/tmp/keerola/PARKDIR/ECF/mf200112100600m
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:45 mf200112101200 ->
/tmp/keerola/PARKDIR/ECF/mf200112101200
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:45 mf200112101200m ->
/tmp/keerola/PARKDIR/ECF/mf200112101200m
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:46 mf200112101800 ->
/tmp/keerola/PARKDIR/ECF/mf200112101800
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:46 mf200112101800m ->
/tmp/keerola/PARKDIR/ECF/mf200112101800m
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:46 mf200112110000 ->
/tmp/keerola/PARKDIR/ECF/mf200112110000
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:46 mf200112110000m ->
/tmp/keerola/PARKDIR/ECF/mf200112110000m
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:47 mf200112110600 ->
/tmp/keerola/PARKDIR/ECF/mf200112110600
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:47 mf200112110600m ->
/tmp/keerola/PARKDIR/ECF/mf200112110600m
0 lrwxr-xr-x 1 keerola
met
39 Dec 17 10:47 mf200112111200 ->
/tmp/keerola/PARKDIR/ECF/mf200112111200
0 lrwxr-xr-x 1 keerola
met
40 Dec 17 10:47 mf200112111200m ->
/tmp/keerola/PARKDIR/ECF/mf200112111200m
0 lrwxr-xr-x 1 keerola
met
37 Dec 17 10:46 ob2001121012 -> /tmp/keerola/PARKDIR/OBF/ob2001121012
0 lrwxr-xr-x 1 keerola
met
37 Dec 17 10:46 ob2001121018 -> /tmp/keerola/PARKDIR/OBF/ob2001121018
0 lrwxr-xr-x 1 keerola
met
37 Dec 17 10:46 ob2001121100 -> /tmp/keerola/PARKDIR/OBF/ob2001121100
0 lrwxr-xr-x 1 keerola
met
37 Dec 17 10:47 ob2001121106 -> /tmp/keerola/PARKDIR/OBF/ob2001121106
8 drwxr-xr-x 2 keerola
met
4096 Dec 17 10:38 scripts/
8 -rw-r--r-- 1 keerola
met
118 Dec 17 10:38 scripts-vn
/tmp/keerola/hl512/hl_data/OMC >
/tmp/keerola/hl512/hl_data/OMC > ls -l 20011210_12
total 72592
24 -rw-r--r-- 1 keerola
met
9180 Dec 17 10:46 HL_CycleInput_2001121012.html
0 lrwxr-xr-x 1 keerola
met
19
Dec 17 11:27 ae -> ../20011210_06/ae06
240 -rw-r--r-- 1 keerola
met
121788 Dec 17 11:41 ae06
13648 -rw-r--r-- 1 keerola
met
6984000 Dec 17 11:41 an
5584 -rw-r--r-- 1 keerola
met
2856000 Dec 17 11:42 an00md
3096 -rw-r--r-- 1 keerola
met
1584000 Dec 17 11:42 an00ve
8 -rw-r--r-- 1 keerola
met
2 Dec 17 11:41 an_done
0 lrwxr-xr-x 1 keerola
met
17
Dec 17 10:46 bdry1 -> ../mf200112101200
0 lrwxr-xr-x 1 keerola
met
17
Dec 17 10:46 bdry2 -> ../mf200112101800
8 -rw-r--r-- 1 keerola
met 293 Dec
17 10:46 bdsy
0 lrwxr-xr-x 1 keerola
met
19
Dec 17 11:27 bl -> ../20011210_06/bl06
24 -rw-r--r-- 1 keerola
met
10439 Dec 17 11:41 bl06
15944 -rw-r--r-- 1 keerola
met
8160000 Dec 17 11:41 cof
13032 -rw-r--r-- 1 keerola
met
6672000 Dec 17 11:53 fc00
1760 -rw-r--r-- 1 keerola
met
900000 Dec 17 11:53 fc00md
2792 -rw-r--r-- 1 keerola
met
1428000 Dec 17 11:53 fc00ve
128 -rw-r--r-- 1 keerola
met
240 Dec 17 11:53 fc_signals
8 -rw-r--r-- 1 keerola
met
57
Dec 17 11:26 history
16 -rw-r--r-- 1 keerola
met
4963 Dec 17 11:41 namrunProg
0 lrwxr-xr-x 1 keerola
met
15
Dec 17 10:46 ob -> ../ob2001121012
2704 -rw-r--r-- 1 keerola
met
1384084 Dec 17 10:46 obhl
0 lrwxr-xr-x 1 keerola
met
19
Dec 17 11:26 sds -> ../20011210_06/fc06
13576 -rw-r--r-- 1 keerola
met
6948000 Dec 17 11:27 sfcan
/tmp/keerola/hl512/hl_data/OMC >
/tmp/keerola/hl512/hl_data/OMC > cd 20011210_12
/tmp/keerola/hl512/hl_data/OMC/20011210_12 > cat bdsy
DTG2001121012
TYPE DATE HH BDLL
FC 20011210 12 00
FC 20011210 18 00
/tmp/keerola/hl512/hl_data/OMC/20011210_12 > cd $HL_EXP
/tmp/keerola/hl512/hl_arc/OMC
/tmp/keerola/hl512/hl_arc/OMC > ls -l
total 81192
68640 -rw-r--r-- 1 keerola
met
35143680 Dec 17 11:27 AR20011210_06.tar
9904 -rw-r--r-- 1 keerola
met
5068800 Dec 17 11:27 VE20011210_06.tar
240 -rw-r--r-- 1 keerola
met
121782 Dec 17 09:09 ae00000000
2408 -rw-r--r-- 1 keerola
met
1231207 Dec 17 10:42 cl00120000.hdf
0 -rw-r--r-- 1 keerola
met
0 Dec 17 10:45 lsm2131.51.5m_r1
/tmp/keerola/hl512/hl_arc/OMC > tar tvf
AR20011210_06.tar
rw-r--r--
1006/5000
8862 Dec 17 10:45 2001 HL_CycleInput_2001121006.html
rw-r--r-- 1006/5000 1165745
Dec 17 11:26 2001 HL_Cycle_2001121006.html
rw-r--r-- 1006/5000
121788
Dec 17 10:57 2001 ae06
rw-r--r-- 1006/5000 5244000
Dec 17 10:57 2001 an
rw-r--r-- 1006/5000 2856000
Dec 17 10:58 2001 an00md
rw-r--r--
1006/5000
2 Dec 17 10:57 2001 an_done
rw-r--r--
1006/5000
488 Dec 17 10:45 2001 bdsy
rw-r--r--
1006/5000
8614 Dec 17 10:57 2001 bl06
rw-r--r-- 1006/5000 6696000
Dec 17 11:08 2001 fc00
rw-r--r-- 1006/5000
948000
Dec 17 11:08 2001 fc00md
rw-r--r-- 1006/5000 6936000
Dec 17 11:17 2001 fc03
rw-r--r-- 1006/5000 2016000
Dec 17 11:16 2001 fc03md
rw-r--r-- 1006/5000 6960000
Dec 17 11:25 2001 fc06
rw-r--r-- 1006/5000 2052000
Dec 17 11:25 2001 fc06md
rw-r--r--
1006/5000
50 Dec 17 10:45 2001 history
rw-r--r-- 1006/5000
108000
Dec 17 11:25 2001 ts
/tmp/keerola/hl512/hl_arc/OMC > tar tvf
VE20011210_06.tar
rw-r--r-- 1006/5000 1560000
Dec 17 10:58 2001 an00ve
rw-r--r-- 1006/5000 1440000
Dec 17 11:08 2001 fc00ve
rw-r--r-- 1006/5000
384000
Dec 17 11:16 2001 fc03ve
rw-r--r-- 1006/5000 1656000
Dec 17 11:25 2001 fc06ve
rw-r--r-- 1006/5000
23767 Dec 17 11:27 2001 ve
# times:
DTGBEG=${DTGBEG-$DTG}
# first date/time of experiment
DTGEND=${DTGEND-$DTG}
# stopcriterion for experiment
# grid/area
NLON=438
# areasize
NLAT=336
NLEV=40
NBNDRY=8
# width of boundary zone
SOUTH=-32.
# area boundaries
WEST=-50.
NORTH=35.
EAST=37.4
POLAT=-30.0
# coordinates of South pole
POLON=0.0
#
postprocessing of forecast results
WRITUPTIMES="00 03
06 12 18 24 30 36 42 48"
# write-up times for history
files:
# space-separated, in double
quotes
NLONPP=$NLON
# size of postprocessed subarea
NLATPP=$NLAT
IMINPP=1
# SW corner of postprocessed subarea
JMINPP=1
#
----------------------------------------------------rcs stuff
# $Revision: 1.5
$, checked in by $Author: LauraRontu $ at $Date: 2004/06/07 06:51:02 $
# $Log:
Env_domain,v $
# Revision
1.5 2004/06/07 06:51:02 LauraRontu
# (HIRLAM version
6.3.2)
# The default
domain is now that of RCR at FMI
#
# Revision
1.4 2003/11/17 07:31:08 GerardCats
# (HIRLAM version
6.2.1)
# Default becometh
the RCR area
#
# Revision
1.3 2001/06/25 06:48:34 GerardCats
# Add 00 to
WRITUPTIMES (Note: fc00 replaces in00 if DFI or NMI)
#
# Revision
1.2 1999/09/13 08:16:30 GerardCats
# NLON became 114,
to match NPBPTS=2; WEST,EAST changed accordingly
#
# Revision
1.1 1999/04/19 08:19:36 GCats
# Created from
$HL_SCR, HIRLAM version 4.3.5, by Gerard Cats
#
#<title>Env_system:
Describe hard/software system at ECMWF</title>
# 0. This file
version
ENV_SYS_VN=6.3.4
export ENV_SYS_VN
# 1.
Identify and describe your system
export COMPCENTRE
COMPCENTRE=ECMWF
# computer centre
# 1.0 define hosts
and the location of this file on each host
# lvfs: large
volatile file system, should be fast
if [ "$COMPCENTRE"
= ECMWF ]; then
HOST0=ecgate export HOST0
# at ECMWF, define
second, compute host:
hostc=hpcd #
compute host
HOST1=$hostc-batch export HOST1
# lvfs on the
different hosts: replace 'home' in $HOME by ... see also below
lvfshost0=`echo $HOME | sed "s.home.scratch."`
lvfshost1=`echo $HOME | sed "s.home.$hostc/tmp."`
else
HOST0=void export HOST0
fi
SMSHOST=${SMSHOST-$HOST0}
# default is to run on HOST0
# 1.1 Set system
hard/software CS (Compiling system) and OS (operating system)
export CS OS NBITS
LSERIAL NHORPH ENDIAN LOADLEVELER
if [ $COMPCENTRE =
ECMWF ]; then
CS=AIX
OS=$CS
LSERIAL=.false. # this is not a vector machine
NHORPH= #
vector length
else
# some defaults for other installations than ECMWF
CS=SGI77 #
choose and implement your own.
OS=$CS #
operating system is defaulted from CS, except for GNU
[ $CS
= SGI77 -o $CS = SGI90 ] && OS=SGI
[ $CS
= G77 -a $OS = $CS ] && { echo Set and implement OS for G77;
exit 1; }
LSERIAL=.false. # .false. for non-vector machines,
.true. for vector
NHORPH= #
vectorlength, don't use on non-vector machines
fi
NBITS=32
ENDIAN=BIG
# set to LITTLE on little endian
OS/CS but NOT on ALPHA
# 1.2 Root
directories of HIRLAM system
if [ $COMPCENTRE =
ECMWF ]; then
lpfs=/nkg/hirlam2/member
else
lvfshost0=$SCRATCH # idem, on HOST0 but at ECMWF
already defined above
lvfshost1= # idem, on HOST1 but at
ECMWF already defined above
lpfs= # HIRLAM on Large Permanent
File System (possibly slow)
fpfs= # HIRLAM on Fast Permanent
File System (possibly small)
fi
# 1.3 Root
directories of HIRLAM experiments
export HL_ARC
if [ $COMPCENTRE =
ECMWF ]; then
#
HL_ARC=/$USER/hirlam # USER=ecauth
if on ssh; hence:
HL_ARC=`perl -e '$_="'$HOME'"; s~^/.*/~/~; print $_, "/hirlam"'`
else
HL_ARC= # Archive root, in LPFS
fi
home=$HOME
# home of experiments runs, in FPFS
# 2. Set
HIRLAM variables, and, if for installation, extract export system
# 2.1 HIRLAM
system location
export HL_REF_FS
HL_REF_CP HL_UTIL HL_SCR HL_RESOURCES HL_SDOC HL_DOC HL_HTML
export HIRVDA_ROOT
HIRVDA_CONFIG
export BUFRTAB_DIR
HL_REF_FS=$lpfs
# HIRLAM root on large Permanent
File System
#
HL_REF_CP= #
copy of HL_REF_FS on large volatile file system
# HL_REF_CP may coincide with
HL_REF_FS
if [ $COMPCENTRE =
ECMWF ]; then
if [
$SMSHOST = $HOST0 ]; then
HL_REF_CP=/home/ms/nl/nkg/hl_ref_cp
elif
[ $SMSHOST = "$HOST1" ]; then
HL_REF_CP=/ms_perm/hirlam/hl_ref_cp
fi
else
if [
$SMSHOST = $HOST0 ]; then
HL_REF_CP=$lvfshost0/hl_ref_cp
elif
[ $SMSHOST = "$HOST1" ]; then
HL_REF_CP=$lvfshost1/hl_ref_cp
elif
[ $SMSHOST = "$HOST2" ]; then
HL_REF_CP=$lvfshost2/hl_ref_cp
fi
fi
if [ $COMPCENTRE =
ECMWF ]; then
if [
$SMSHOST = $HOST0 ]; then
HL_UTIL=/home/ms/nl/nkg/hl_util_IBM # on each host,
no NFS because of binaries
HL_SCR=/home/ms/nl/nkg/hl_scr_5.0.2
HIRVDA_ROOT=not_needed
HL_RESOURCES=/home/ms/nl/nkg/hl_resources # directory
with resource files
elif
[ $SMSHOST = "$HOST1" ]; then
HL_UTIL=/home/ms/nl/nkg/hl_util #
on each host, no NFS because of binaries
HL_SCR=/NeverUsed
HIRVDA_ROOT=/ms_perm/hirlam/hirvda.6.3.6/hirlam_src
HL_RESOURCES=/home/ms/nl/nkg/hl_resources # directory
with resource files
fi
HIRVDA_CONFIG=ibmecmwf
else
HL_UTIL=$fpfs/hl_util # directory with utilities
HL_SCR=$fpfs/hl_scr_5.0.2 # directory with
`Munchhausen' scripts
HIRVDA_ROOT= #
#DVAR root directory
HIRVDA_CONFIG= # HIRVDA
configuration
HL_RESOURCES=$fpfs/hl_resources # directory with
resource files
fi
HL_SDOC=/$HL_RESOURCES/doc
# directory with (support) information; note: //
if [ $COMPCENTRE =
ECMWF ]; then
HL_DOC=//home/ms/nl/rui # HIRLAM documentation
else
HL_DOC=https://hirlam.knmi.nl/UG/HL_Documentation # HIRLAM documentation
fi
HL_HTML=$hl_home/hirlam-doc
# directory for html documentation
BUFRTAB_DIR=$HL_REF_CP
# directory with BUFR tables but ...
BUFRTAB_DIR=$BUFRTAB_DIR/dat/bufrtables
# must end in dat/bufrtables
# 2.3 Experiment
identifier and directories
export HL_WD
HL_DATA HL_EXP HL_LIB
EXP=${EXP?"Give
'experiment' identifier EXP before running this script"}
HL_WD=$home/$EXP
# experiment, user's working directory in FPFS
if [ $SMSHOST =
$HOST0 ]; then
HL_DATA=$lvfshost0/$EXP # HL_DATA on main HIRLAM host
elif [ $SMSHOST =
"$HOST1" ]; then
HL_DATA=$lvfshost1/$EXP # HL_DATA on host HOST1
elif [ $SMSHOST =
"$HOST2" ]; then
HL_DATA=$lvfshost2/$EXP # HL_DATA on host HOST2
fi
HL_LIB=$HL_DATA/lib
# directory for scripts, compiled objects,
executables
HL_EXP=$HL_ARC/$EXP
# experiment archive directory in LPFS
hl_hs=$home/hirlam_scr
# user's own scripts directory in FPFS
# 3. Path
export PATH
if [ $COMPCENTRE =
ECMWF ]; then
if [
$SMSHOST = $HOST0 ]; then
PATH=/usr/local/share:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:\
/sbin:/usr/local/etc:/usr/lpp/LoadL/full/bin:/usr/atria/bin:$HOME/bin:$HOME/bin/rs6000:\
$HL_WD/scripts:$hl_hs:$HL_LIB/scripts:$HL_UTIL/bin:$HL_SCR
else # on HOST1
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java130/jre/bin:/usr/java130/bin:/usr/lpp/LoadL/full/bin:/usr/local/bin:/home/us/usj/bin:/home/ma/emos/bin:/home/rd/rdx/bin:/usr/vac/bin:/usr/vacpp/bin:$hl_hs:$HL_LIB/scripts:/home/ms/nl/nkg/hl_util/bin
# HL_SCR is not used here
fi
else
PATH=$PATH:$HL_WD/scripts:$hl_hs:$HL_LIB/scripts:$HL_UTIL/bin:$HL_SCR
fi
# 4. Utilities
# 4.1 for the main
unix platform
export MAKE CO
MKDIR WHENCE
MAKE=gmake
MAKE_COMPILE="-j
1" export MAKE_COMPILE # parallel compilations by
$MAKE - but be cowardly
if [ $COMPCENTRE =
ECMWF ]; then
if [
$SMSHOST = $HOST1 ]; then
MAKE_COMPILE="-j 1"
fi
fi
CO=co
MKDIR="mkdir -p"
WHENCE=whence
# 4.2 For
(mini-)SMS
export SMSMETER CDP
SMSMETER=${SMSMETER-$HL_LIB/scripts/smsmeter}
CDP=${CDP-$HL_LIB/scripts/sms_cdp}
export
PERL_TK # Perl with Tk
if [ $COMPCENTRE =
ECMWF ]; then
PERL_TK=/usr/local/bin/perl56
else
PERL_TK=perl
fi
# 5.
Preparative actions
# 6.
Operating system dependants
# 6.1 To run
scripts
export NAMLIS_E
NAMLIS_E='&end'
# string to end a namelist
[ $CS = FUJITSU ]
&& NAMLIS_E='/'
[ $CS = AIX
] && NAMLIS_E='/'
# 6.2 System
libraries
export ECLIB SCILIB
ECLIB= #
${EMOSLIB-~emos/lib/libemos.R32.D64.I32.a} # probably never used!
SCILIB= #
/usr/lib/libveclib.a # libs with BLAS/EISPACK, white space
separated
# only used if
relevant cpp define options are set
# Maximum
factorisation for FFTs, On IBM, ESSL is used for FFT
export
MAXFACT235711
MAXFACT235711="99,99,99,0,0"
# [ $CS = AIX
] && MAXFACT235711="99,2,1,1,1"
[ $CS = AIX
] &&
MAXFACT235711="99,2,1,0,0" # do not use factors 7
& 11 for compatibility
# 6.3 HDF
export HDFINCDIR
HDFLIBDIR HDFLIBS
if [ $COMPCENTRE =
ECMWF ]; then
export _HDF_=_HDF_ # need an
underscore when invoking HDF routines
ilp=LP64
# ilp=ILP32
hdf=/usr/local/lib/hdf/HDF4.1r5_${ilp}_extname
#
hdf=/usr/local/apps/hdf/HDF4.1r5_ILP32_underscore # on ecgate
else
hdf=
fi
HDFINCDIR=$hdf/include
HDFLIBDIR=$hdf/lib
HDFLIBS="-lmfhdf
-ldf -ljpeg -lz"
# 6.3a Climate
file input HDF sets
export HDFSET HIRES
if [ $COMPCENTRE =
ECMWF ]; then
#
HDFSET=9000 # HDF file set to use
for the climate generation (old, regular or 9000)
HDFSET=old # for a test of 6.2.3.
6.2.4 needs the previous line, and the next
#
HIRES=0.025 # preferred HDF set
resolution, if available (0.0125, 0.025, 0.05)
export HL_CLDATA
if [
$SMSHOST = $HOST0 ]; then
HL_CLDATA=${HL_CLDATA-/scratch/ms/nl/nkg/hl_ref_cp} #
climate data directory
else
HL_CLDATA=${HL_CLDATA-/$hostc/tmp/ms/nl/nkg/hl_cldata}
# climate data directory
fi
else
HDFSET=old # HDF file set to use
for the climate generation (old, regular or 9000)
#
HIRES=0.05 # preferred HDF set
resolution, if available (0.0125, 0.025, 0.05)
fi
# 6.4 MPI
# export LAMHOME
LAMHOSTS
#
LAMHOME=${LAMHOME-/usr/people/moene/lammpi}
#
PATH=$PATH:$LAMHOME/bin
#
LAMHOSTS=${LAMHOSTS-$LAMHOME/boot/bhost.def}
# export MPILIB
MPIINC # this line required for MPI
if [ $COMPCENTRE =
ECMWF ]; then
#
MPILIB="-Wl,-P -L/usr/lang/mpi/lib -lmpi -L/opt/tools/lib -lmp2x"
export MPILIB
fi
# 6.5 mini-SMS
export
PERLTKDIR # the directory of the
Perl-Tk toolkit
PERLTKDIR=
export
JOBOUTDIR # directory of job
stdout/stderr files
JOBOUTDIR=$HL_DATA
# 6.6 Asynchronous
I/O (HIRLAM Gribfile Server)
export HGS_TYPE
HGS_TYPE=MPI
# NONE,IPC,MPI
# 8. Derived
environment variables
# 9.
Obsolescing
export HL_COMDAT
HL_COMDAT=$HL_DATA/..
# 10. At ECMWF
some things for the ever varying environment of compilers etc.
if [ $COMPCENTRE =
ECMWF ]; then
# 10.1 compiler
# if [
"$SMSHOST" = "$HOST1" ]; then
#
[ -r /usr/local/share/sh.xlf_9100 ] && .
/usr/local/share/sh.xlf_9100
#
[ -r /usr/local/share/sh.vac_7000 ] && .
/usr/local/share/sh.vac_7000
# else
#
[ -r /usr/local/share/sh.xlf_8113 ] && .
/usr/local/share/sh.xlf_8113
# fi
# 10.2 MPI/HGS
if [
"$SMSHOST" = "$TARGETNODE" ]; then
if [ "$HGS_TYPE" = MPI ]; then
MP_EAGER_LIMIT=1K
MP_BUFFER_MEM=128M export MP_BUFFER_MEM
else
MP_EAGER_LIMIT=64K
fi
MP_SHARED_MEMORY=yes
export MP_EAGER_LIMIT MP_SHARED_MEMORY
fi
# 10.3 Directories
# JOBOUTDIR, as
known on ecgate
JOBOUTDIR=`echo $HOME | sed "s/home/$hostc\/ms_dir/"`
fi