source: branches/iLoveclim/lauching_area/Master-files/grisli.run.openmp @ 359

Last change on this file since 359 was 359, checked in by aquiquet, 2 years ago

Trunk merged to branch at revision 357

  • Property svn:executable set to *
File size: 892 bytes
Line 
1#!/bin/bash
2# Script pour lancer grisli en batch au LSCE
3# Works for the
4#PBS -N RUNNAME
5# Specify batch queue
6#PBS -q longp
7#PBS -v BATCH_NUM_PROC_TOT=4
8#PBS -l nodes=1:ppn=4
9# Specify execution shell
10##PBS -S /bin/bash
11# Request that stdin and stdout are merged in the same output file
12#PBS -j eo
13# Send a mail when the job terminates
14#PBS -m e -M christophe.dumas@lsce.ipsl.fr
15
16export MKL_NUM_THREADS=4
17export OMP_NUM_THREADS=4
18export KMP_STACKSIZE=16000000 #2048000000 # KMP_STACKSIZE remplace OMP_STACKSIZE avec ifort
19
20module load netcdf/4
21module load intel-fcomp/2013
22
23MODEL="SOURCESREP"
24EXEDIR="EXEREP"
25
26
27echo "Grisli is being compiled..."
28cd $MODEL
29make clean && make EXE_NAME
30
31cd $EXEDIR
32LID=`date +%y%m%d-%H%M%S`
33echo "`date` -- GRISLI EXECUTION BEGINS HERE"
34./EXE_NAME >& EXE_NAME.log.$LID
35
36wait
37echo "`date` -- GRISLI EXECUTION HAS FINISHED"
38
39# Clean the sources?
40#rm -rf $MODEL
Note: See TracBrowser for help on using the repository browser.