| 1 | #################################################################### |
|---|
| 2 | # @ job_name = LMD_LES_MARS |
|---|
| 3 | # @ job_type = MPICH |
|---|
| 4 | # @ total_tasks = 8 |
|---|
| 5 | # @ class = AP |
|---|
| 6 | # @ environment = real=0;tmpdir=$(job_name).$(jobid).results |
|---|
| 7 | #################################################################### |
|---|
| 8 | #################################################################### |
|---|
| 9 | #################################################################### |
|---|
| 10 | # @ output = $(job_name).$(jobid) |
|---|
| 11 | # @ error = $(output) |
|---|
| 12 | # @ blocking = unlimited |
|---|
| 13 | # @ notification = never |
|---|
| 14 | # @ queue |
|---|
| 15 | grep "^# @" $0 |
|---|
| 16 | set -vx |
|---|
| 17 | #################################################################### |
|---|
| 18 | mkdir $LOADL_STEP_INITDIR/${tmpdir} |
|---|
| 19 | cd $LOADL_STEP_INITDIR/${tmpdir} |
|---|
| 20 | #################################################################### |
|---|
| 21 | ln -sf $LOADL_STEP_INITDIR/*.exe . |
|---|
| 22 | ln -sf $LOADL_STEP_INITDIR/*.def . |
|---|
| 23 | ln -sf $LOADL_STEP_INITDIR/namelist.* . |
|---|
| 24 | ln -sf $LOADL_STEP_INITDIR/wrfi* . ### executer sur la frontale |
|---|
| 25 | ### au prealable !!! |
|---|
| 26 | #################################################################### |
|---|
| 27 | if [[ "${real}" == "0" ]] |
|---|
| 28 | then |
|---|
| 29 | ln -sf $LOADL_STEP_INITDIR/input_* . |
|---|
| 30 | else |
|---|
| 31 | ln -sf $LOADL_STEP_INITDIR/wrfb* . |
|---|
| 32 | fi |
|---|
| 33 | #################################################################### |
|---|
| 34 | declare -x MP_STACK_SIZE=640000000 |
|---|
| 35 | mpirun wrf.exe |
|---|
| 36 | #################################################################### |
|---|
| 37 | #################################################################### |
|---|
| 38 | #################################################################### |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | #################################################################### |
|---|
| 43 | ## @ total_tasks =16 ## ne fonctionne pas avec 241 points |
|---|
| 44 | ## @ total_tasks =20 ## semble mieux fonctionner... bof |
|---|
| 45 | ## @ total_tasks =24 ## il y a un souci a l'interface |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | #################################################################### |
|---|
| 49 | #################################################################### |
|---|
| 50 | ###############NE MARCHE PAS AVEC LES GRANDS DOMAINES ############## |
|---|
| 51 | #################################################################### |
|---|
| 52 | #################################################################### |
|---|
| 53 | #echo "#! /bin/bash" > script |
|---|
| 54 | #echo "ulimit -s unlimited" >> script |
|---|
| 55 | #echo "./ideal.exe" >> script |
|---|
| 56 | #echo "mv rsl.out.0000 ideal_rsl.out.0000" >> script |
|---|
| 57 | #chmod 755 script |
|---|
| 58 | #mpirun ./script |
|---|
| 59 | #\rm script |
|---|
| 60 | #################################################################### |
|---|
| 61 | ##declare -x MP_STACK_SIZE=64000000 |
|---|
| 62 | ##mpirun ideal.exe ### PB: ideal.exe est limite a un moment |
|---|
| 63 | ## ### mais mpirun ideal.exe donne des instabilites |
|---|
| 64 | ##ulimit -s unlimited ### ne resout pas PB... ok 145 pas ok 201 |
|---|
| 65 | ##./ideal.exe |
|---|
| 66 | ##mpirun "ulimit -s unlimited ; ./ideal.exe" |
|---|
| 67 | ##mv rsl.out.0000 ideal_rsl.out.0000 |
|---|
| 68 | #################################################################### |
|---|