| 1 | ####################################################################### |
|---|
| 2 | ####################################################################### nom |
|---|
| 3 | # @ job_name = LMD_LES_MARS |
|---|
| 4 | ####################################################################### MPICH / serial |
|---|
| 5 | # @ job_type = MPICH |
|---|
| 6 | ####################################################################### 8 / 16 / 20 / 32 / 64 |
|---|
| 7 | # @ total_tasks = 8 |
|---|
| 8 | ####################################################################### A / B / C / AP / BP / CP |
|---|
| 9 | # @ class = AP |
|---|
| 10 | ####################################################################### 24gb (cf. llps pendant fonctionnement) |
|---|
| 11 | # @ resources = ConsumableCpus(1)ConsumableMemory(1gb) |
|---|
| 12 | ####################################################################### real ou ideal ??? |
|---|
| 13 | # @ environment = real=0 ; tmpdir=$(job_name).$(jobid) ; para=$(job_type) |
|---|
| 14 | ####################################################################### |
|---|
| 15 | |
|---|
| 16 | ####################################################################### |
|---|
| 17 | ####################################################################### |
|---|
| 18 | # @ output = $(job_name).$(jobid)/LOG |
|---|
| 19 | # @ error = $(output) |
|---|
| 20 | # @ blocking = unlimited |
|---|
| 21 | # @ notification = never |
|---|
| 22 | # @ queue |
|---|
| 23 | grep "^# @" $0 |
|---|
| 24 | set -vx |
|---|
| 25 | ####################################################################### |
|---|
| 26 | mkdir $LOADL_STEP_INITDIR/${tmpdir} |
|---|
| 27 | cd $LOADL_STEP_INITDIR |
|---|
| 28 | \rm zeLAST |
|---|
| 29 | ln -sf ${tmpdir} zeLAST |
|---|
| 30 | cd zeLAST |
|---|
| 31 | ####################################################################### |
|---|
| 32 | cp $LOADL_STEP_INITDIR/launch.gnome . |
|---|
| 33 | cp $LOADL_STEP_INITDIR/*.def . |
|---|
| 34 | cp $LOADL_STEP_INITDIR/*.exe . |
|---|
| 35 | cp $LOADL_STEP_INITDIR/namelist* . |
|---|
| 36 | cp $LOADL_STEP_INITDIR/wrfi* . ### executer sur la frontale |
|---|
| 37 | ### au prealable !!! |
|---|
| 38 | ####################################################################### |
|---|
| 39 | if [[ "${real}" == "0" ]] |
|---|
| 40 | then |
|---|
| 41 | cp $LOADL_STEP_INITDIR/input_* . |
|---|
| 42 | cp $LOADL_STEP_INITDIR/ze_hill . ## topo |
|---|
| 43 | cp $LOADL_STEP_INITDIR/levels . ## custom vert levels |
|---|
| 44 | ##mpirun ideal.exe ##marche pas |
|---|
| 45 | ##mkdir ideal |
|---|
| 46 | ##mv rsl.* ideal/ |
|---|
| 47 | else |
|---|
| 48 | cp $LOADL_STEP_INITDIR/wrfb* . |
|---|
| 49 | fi |
|---|
| 50 | ####################################################################### |
|---|
| 51 | #### avant wrf.exe, necessaire ??? |
|---|
| 52 | #declare -x MP_STACK_SIZE=640000000 |
|---|
| 53 | #declare -x MP_STACK_SIZE=64000000 |
|---|
| 54 | ####################################################################### |
|---|
| 55 | if [[ "${para}" == "MPICH" ]] |
|---|
| 56 | then |
|---|
| 57 | mpirun wrf.exe |
|---|
| 58 | else |
|---|
| 59 | ./wrf.exe |
|---|
| 60 | fi |
|---|
| 61 | ####################################################################### |
|---|