Changeset 503 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Mar 3, 2010 12:27:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r493 r503 1 1 #!/bin/ksh 2 # mrun - Plot-Shellskript2 # mrun - script for running PALM jobs 3 3 # $Id$ 4 4 5 # Prozedur zum Starten von Modellaeufen 6 7 # letzte Aenderung: 5 # Procedure for interactive/batch PALM runs (initial runs and automatic 6 # restart runs) 7 8 # Last changes: 8 9 # 03/03/94 - Siggi - Entwicklungsbeginn 9 10 # 21/03/94 - Siggi - Entwicklungsabschluss (Version 1.0) … … 200 201 # 08/02/10 - Siggi - loading of modules now controlled via configuration 201 202 # file (modules) 203 # 02/03/10 - Siggi - for each block in the configuration file, separate 204 # utility programs are used, combine_plot_fields is 205 # directly called and must not be given by an output 206 # command in the configuration file any more 202 207 203 208 … … 671 676 locat=options; exit 672 677 fi 678 block=_$cond1 679 [[ -n $cond2 ]] && block=${block}_$cond2 673 680 fi 674 681 … … 973 980 /home/COAR/NC/raasch/pub/interpret_config_necriam.x 974 981 else 975 interpret_config.x 982 983 if [[ "$host" != $localhost ]] 984 then 985 986 # REMOTE JOB FROM LOCAL HOST: JUST TAKE THE FIRST EXECUTABLE FOUND 987 interpret_config_executable=`ls -1 ${PALM_BIN}/interpret_config*.x 2>/dev/null` 988 if [[ $? != 0 ]] 989 then 990 printf "\n\n +++ no interpret_config found" 991 printf "\n run \"mbuild -u -h ...\" to generate utilities for this host" 992 locat=interpret_config; exit 993 fi 994 interpret_config_executable=`echo $interpret_config_executable | cut -d" " -f1` 995 $interpret_config_executable 996 997 else 998 999 # CHECK, IF THERE IS AN EXECUTABLE FOR THE BLOCK 1000 if [[ ! -f ${PALM_BIN}/interpret_config${block}.x ]] 1001 then 1002 printf "\n\n +++ no interpret_config found for given block \"$cond1 $cond2\"" 1003 printf "\n run \"mbuild -u -h ...\" to generate utilities for this block" 1004 locat=interpret_config; exit 1005 else 1006 interpret_config${block}.x 1007 fi 1008 1009 fi 976 1010 fi 977 1011 rm .mrun_environment … … 3355 3389 fi 3356 3390 3357 # if [[ $scirocco = true ]]3358 # then3359 # mpiexec -machinefile hostfile -n $ii a.out $ROPTS3360 # else3361 # mpirun -machinefile hostfile -np $ii a.out $ROPTS3362 # fi3363 3391 fi 3364 3392 elif [[ $host = decalpha ]] … … 3470 3498 3471 3499 fi 3500 fi 3501 3502 3503 3504 # Call of combine_plot_fields in order to merge single files written 3505 # by each PE into one file. 3506 if [[ ! -f ${PALM_BIN}/combine_plot_fields${block}.x ]] 3507 then 3508 printf "\n\n\n +++ WARNING: no combine_plot_fields found for given block \"$cond1 $cond2\"" 3509 printf "\n 2d- and/or 3d-data may be incomplete!" 3510 printf "\n Run \"mbuild -u -h $localhost\" to generate utilities for this block.\n" 3511 else 3512 printf "\n\n\n *** post-processing: now executing \"combine_plot_fields${block}.x\" ..." 3513 combine_plot_fields${block}.x 3472 3514 fi 3473 3515
Note: See TracChangeset
for help on using the changeset viewer.