Ignore:
Timestamp:
Mar 3, 2010 12:27:06 AM (14 years ago)
Author:
raasch
Message:

New:
---

Changed:


combine_plot_fields is now directly called within mrun and must not be given
by an output command in the configuration file any more.

Utility programs (combine_plot_fields, interpret_config) are created by mbuild
separately for each block in the configuration file. Depending on option -K,
mrun is using the utility programs for the respective block.
Parallel make for utility programs.

Default configuration files updated.

mbuild, mrun, UTIL/Makefile

Errors:


File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r493 r503  
    11#!/bin/ksh
    2 # mrun - Plot-Shellskript
     2# mrun - script for running PALM jobs
    33# $Id$
    44
    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:
    89     # 03/03/94 - Siggi - Entwicklungsbeginn
    910     # 21/03/94 - Siggi - Entwicklungsabschluss (Version 1.0)
     
    200201     # 08/02/10 - Siggi  - loading of modules now controlled via configuration
    201202     #                     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
    202207
    203208
     
    671676       locat=options; exit
    672677    fi
     678    block=_$cond1
     679    [[ -n $cond2 ]]  &&  block=${block}_$cond2
    673680 fi
    674681
     
    973980       /home/COAR/NC/raasch/pub/interpret_config_necriam.x
    974981    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
    9761010    fi
    9771011    rm .mrun_environment
     
    33553389                fi
    33563390
    3357 #             if [[ $scirocco = true ]]
    3358 #             then
    3359 #                mpiexec  -machinefile hostfile  -n $ii  a.out  $ROPTS
    3360 #             else
    3361 #                mpirun  -machinefile hostfile  -np $ii  a.out  $ROPTS
    3362 #             fi
    33633391             fi
    33643392          elif [[ $host = decalpha ]]
     
    34703498
    34713499       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
    34723514    fi
    34733515
Note: See TracChangeset for help on using the changeset viewer.