Last change
on this file since 2678 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
|
Rev | Line | |
---|
[2649] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | ############################## |
---|
| 5 | # Gestion des chemins d'acces |
---|
| 6 | ############################## |
---|
| 7 | localdir=`pwd` |
---|
| 8 | dir_tools=`echo $0 | sed -e s:\`basename $0\`::` |
---|
| 9 | modipsl=`cd $dir_tools ; ( pwd | sed -e 's:modipsl.*.$:modipsl:' )` |
---|
| 10 | if [ ! -d $modipsl/modeles/LMDZ5 ] ; then |
---|
| 11 | echo Dans $0 |
---|
| 12 | echo Probleme pour indentifier l arborescence modipsl |
---|
| 13 | exit |
---|
| 14 | fi |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | ############################## |
---|
| 18 | # Lien local pour l'executable |
---|
| 19 | ############################## |
---|
| 20 | if [ -f gcm.e ] ; then cp gcm.e gcm.$$ ; fi |
---|
| 21 | ln -sf $3 gcm.e |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | ################### |
---|
| 25 | # Creation d'un job |
---|
| 26 | ################### |
---|
| 27 | cat <<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 | |
---|
| 37 | ulimit -s unlimited |
---|
| 38 | export OMP_STACKSIZE=800M |
---|
| 39 | export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/smplocal/pub/NetCDF/4.1.3/lib:/smplocal/pub/HDF5/1.8.9/seq/lib |
---|
| 40 | |
---|
| 41 | cd $localdir |
---|
| 42 | \rm -f hist* |
---|
| 43 | |
---|
| 44 | poe ./gcm.e |
---|
| 45 | |
---|
| 46 | for type in day hf mth ; do |
---|
| 47 | \rm -f \$type.nc |
---|
| 48 | $modipsl/bin/rebuild -o \$type.nc hist\${type}_*nc |
---|
| 49 | done |
---|
| 50 | |
---|
| 51 | eod |
---|
| 52 | |
---|
| 53 | ################### |
---|
| 54 | # soumission du job |
---|
| 55 | ################### |
---|
| 56 | llsubmit tmp |
---|
| 57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.