source: LMDZ5/branches/IPSLCM6.0.8/tools/job_ada.sh @ 5409

Last change on this file since 5409 was 2669, checked in by Laurent Fairhead, 8 years ago

Merged trunk changes r2640:2664 into testing branch

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3
4##############################
5# Gestion des chemins d'acces
6##############################
7localdir=`pwd`
8dir_tools=`echo $0 | sed -e s:\`basename $0\`::`
9modipsl=`cd $dir_tools ; ( pwd | sed -e 's:modipsl.*.$:modipsl:' )`
10if [ ! -d $modipsl/modeles/LMDZ5 ]  ; then
11    echo Dans $0
12    echo Probleme pour indentifier l arborescence modipsl
13    exit
14fi
15
16
17##############################
18# Lien local pour l'executable
19##############################
20if [ -f gcm.e ] ; then cp gcm.e gcm.$$ ; fi
21ln -sf $3 gcm.e
22
23
24###################
25# Creation d'un job
26###################
27cat <<eod>| tmp
28# @ job_type = parallel
29# @ job_name = NOMSIMU
30# @ output   = \$(job_name).\$(jobid)
31# @ error    = \$(job_name).\$(jobid)
32# @ total_tasks = $1
33# @ parallel_threads = $2
34# @ wall_clock_limit = 00:30:00
35# @ queue
36
37ulimit -s unlimited
38export OMP_STACKSIZE=800M
39export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/smplocal/pub/NetCDF/4.1.3/lib:/smplocal/pub/HDF5/1.8.9/seq/lib
40
41cd $localdir
42\rm -f hist*
43
44poe  ./gcm.e
45
46for type in day hf mth ; do
47   \rm -f \$type.nc
48   $modipsl/bin/rebuild -o \$type.nc hist\${type}_*nc
49done
50
51eod
52
53###################
54# soumission du job
55###################
56llsubmit tmp
57
Note: See TracBrowser for help on using the repository browser.