Changeset 2693 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Dec 13, 2017 12:33:49 PM (4 years ago)
Author:
raasch
Message:

replacement of variables in configuration file is done in a more general way, variable names are written in small letters

Location:
palm/trunk/SCRIPTS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/.palm.config.crayh

    r2554 r2693  
    2626%compiler_options    -em -O3 -hnoomp -hnoacc -hfp3 -hdynamic
    2727%linker_options      -em -O3 -hnoomp -hnoacc -hfp3 -hdynamic -dynamic
    28 %execute_command     aprun  -n {{MPI_TASKS}}  -N {{TASKS_PER_NODE}}  palm
     28%execute_command     aprun  -n {{mpi_tasks}}  -N {{tasks_per_node}}  palm
     29%execute_command_for_combine     aprun  -n 1  -N 1  ./combine_plot_fields.x
    2930%memory              2300
    3031%module_commands     module load fftw cray-hdf5-parallel cray-netcdf-hdf5parallel
    3132%login_init_cmd      module switch craype-ivybridge craype-haswell
    3233#
    33 # BATCH-directives to be used for batch jobs.
     34# BATCH-directives to be used for batch jobs
    3435BD:#!/bin/bash
    35 BD:#PBS -A {{PROJECT_ACCOUNT}}
    36 BD:#PBS -N {{JOB_ID}}
    37 BD:#PBS -l walltime={{CPU_HOURS}}:{{CPU_MINUTES}}:{{CPU_SECONDS}}
    38 BD:#PBS -l nodes={{NODES}}:ppn={{TASKS_PER_NODE}}
    39 BD:#PBS -o {{JOBFILE}}
     36BD:#PBS -A {{project_account}}
     37BD:#PBS -N {{job_id}}
     38BD:#PBS -l walltime={{cpu_hours}}:{{cpu_minutes}}:{{cpu_seconds}}
     39BD:#PBS -l nodes={{nodes}}:ppn={{tasks_per_node}}
     40BD:#PBS -o {{job_protocol_file}}
    4041BD:#PBS -j oe
    41 BD:#PBS -q {{QUEUE}}
     42BD:#PBS -q {{queue}}
    4243#
    4344# BATCH-directives for batch jobs used to send back the jobfile from a remote to a local host
    4445BDT:#!/bin/bash
    45 BDT:#PBS -A {{PROJECT_ACCOUNT}}
     46BDT:#PBS -A {{project_account}}
    4647BDT:#PBS -N job_protocol_transfer
    4748BDT:#PBS -l walltime=00:30:00
    4849BDT:#PBS -l nodes=1:ppn=1
    49 BDT:#PBS -o {{JOB_TRANSFER_PROTOCOL_FILE}}
     50BDT:#PBS -o {{job_transfer_protocol_file}}
    5051BDT:#PBS -j oe
    5152BDT:#PBS -q dataq
  • palm/trunk/SCRIPTS/.palm.config.default

    r2481 r2693  
    1818%linker_options      -openmp -fpe0 -O3 -xHost -fp-model source -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -I /muksoft/packages/fftw/3.3.4/include -L/muksoft/packages/fftw/3.3.4/lib64 -lfftw3 -I /muksoft/packages/netcdf/4_intel/include -L/muksoft/packages/netcdf/4_intel/lib -lnetcdf -lnetcdff
    1919%hostfile            auto
    20 %execute_command     mpiexec  -machinefile hostfile  -n {{MPI_TASKS}}  palm
     20%execute_command     mpiexec  -machinefile hostfile  -n {{mpi_tasks}}  palm
    2121#
    2222#----------------------------------------------------------------------------
  • palm/trunk/SCRIPTS/.palm.config.default.in

    r2690 r2693  
    3737%compiler_options    @PALM_COMPILER_OPTIONS@
    3838%linker_options      @PALM_LINKER_OPTIONS@
    39 %execute_command     mpirun -n {{MPI_TASKS}} ./palm
     39%execute_command     mpirun -n {{mpi_tasks}} ./palm
    4040#%memory              2300
    4141#%module_commands     module load fftw cray-hdf5-parallel cray-netcdf-hdf5parallel
     
    4545# Directives to be used for batch jobs
    4646# Lines must start with "BD:". If $-characters are required, hide them with \
    47 # Internal variables can be used as {{VARIABLE_NAME}}. Please see documentation.
     47# Internal variables can be used as {{variable_name}}. Please see documentation.
    4848#-------------------------------------------------------------------------------
    4949BD:#!/bin/bash
    50 BD:#PBS -N {{JOB_ID}}
    51 BD:#PBS -l walltime={{CPU_HOURS}}:{{CPU_MINUTES}}:{{CPU_SECONDS}}
    52 BD:#PBS -l nodes={{NODES}}:ppn={{TASKS_PER_NODE}}
    53 BD:#PBS -o {{JOBFILE}}
     50BD:#PBS -N {{job_id}}
     51BD:#PBS -l walltime={{cpu_hours}}:{{cpu_minutes}}:{{cpu_seconds}}
     52BD:#PBS -l nodes={{nodes}}:ppn={{tasks_per_node}}
     53BD:#PBS -o {{job_protocol_file}}
    5454BD:#PBS -j oe
    55 BD:#PBS -q {{QUEUE}}
     55BD:#PBS -q {{queue}}
    5656#
    5757#-------------------------------------------------------------------------------
    5858# Directives for batch jobs used to send back the jobfiles from a remote to a local host
    5959# Lines must start with "BDT:". If $-characters are required, excape them with triple backslash
    60 # Internal variables can be used as {{VARIABLE_NAME}}. Please see documentation.
     60# Internal variables can be used as {{variable_name}}. Please see documentation.
    6161#-------------------------------------------------------------------------------
    6262BDT:#!/bin/bash
     
    6464BDT:#PBS -l walltime=00:30:00
    6565BDT:#PBS -l nodes=1:ppn=1
    66 BDT:#PBS -o {{JOB_TRANSFER_PROTOCOL_FILE}}
     66BDT:#PBS -o {{job_transfer_protocol_file}}
    6767BDT:#PBS -j oe
    6868BDT:#PBS -q dataq
  • palm/trunk/SCRIPTS/.palm.config.idefix

    r2554 r2693  
    2929%module_commands     module load intel-compiler/2017.1.132 mvapich2/2.2/intel fftw/3.3.6-pl1/mvapich2-intel hdf5-parallel/1.10.0-patch1/intel netcdf4_hdf5parallel/4411c_443f/intel
    3030#
    31 %execute_command     mpirun  -machinefile hostfile  -n {{MPI_TASKS}} palm
     31%execute_command     mpirun  -machinefile hostfile  -n {{mpi_tasks}} palm
    3232#
    3333#
    3434# BATCH-directives to be used for batch jobs.
    3535BD:#!/bin/bash
    36 BD:#PBS -N{{JOB_ID}}
    37 BD:#PBS -l walltime={{CPU_HOURS}}:{{CPU_MINUTES}}:{{CPU_SECONDS}}
    38 BD:#PBS -l ncpus={{CORES}}
    39 BD:#PBS -o{{JOBFILE}}
     36BD:#PBS -N{{job_id}}
     37BD:#PBS -l walltime={{cpu_hours}}:{{cpu_minutes}}:{{cpu_seconds}}
     38BD:#PBS -l ncpus={{cores}}
     39BD:#PBS -o{{job_protocol_file}}
    4040BD:#PBS -j oe
    41 BD:#PBS -q{{QUEUE}}
     41BD:#PBS -q{{queue}}
    4242#
    4343# BATCH-directives for batch jobs used to send back the jobfile from a remote to a local host
     
    4646BDT:#PBS -l walltime=00:30:00
    4747BDT:#PBS -l ncpus=1
    48 BDT:#PBS -o{{JOB_TRANSFER_PROTOCOL_FILE}}
     48BDT:#PBS -o{{job_transfer_protocol_file}}
    4949BDT:#PBS -j oe
    5050BDT:#PBS -q workq
  • palm/trunk/SCRIPTS/.palm.config.imuk

    r2481 r2693  
    55%base_data         ~/palm/current_version/JOBS
    66%base_directory    $HOME/palm/current_version
     7%fast_io_catalog   /localdata/raasch
    78%source_path       $HOME/palm/current_version/trunk/SOURCE
    89%user_source_path  $base_directory/JOBS/$fname/USER_CODE
     
    1011%local_ip            130.75.105.103
    1112%local_username      raasch
    12 %fast_io_catalog     /localdata/raasch
    1313%compiler_name       mpif90
    1414%compiler_name_ser   ifort
     
    1818%linker_options      -openmp -fpe0 -O3 -xHost -fp-model source -ftz -fno-alias -no-prec-div -no-prec-sqrt -ip -nbs -I /muksoft/packages/fftw/3.3.4/include -L/muksoft/packages/fftw/3.3.4/lib64 -lfftw3 -I /muksoft/packages/netcdf/4_intel/include -L/muksoft/packages/netcdf/4_intel/lib -lnetcdf -lnetcdff
    1919%hostfile            auto
    20 %execute_command     mpiexec  -machinefile hostfile  -n {{MPI_TASKS}}  palm
     20%execute_command     mpiexec  -machinefile hostfile  -n {{mpi_tasks}}  palm
    2121#
    2222#----------------------------------------------------------------------------
  • palm/trunk/SCRIPTS/palmrun

    r2670 r2693  
    2727# -----------------
    2828# $Id$
     29# replacement of variables given by {{<variable>}} in configuration file is now
     30# done in a more general way, variable names are written in small letters
     31#
     32# 2670 2017-12-06 16:32:19Z raasch
    2933# test printouts removed
    3034#
     
    20412045
    20422046       # REPLACE PARAMETERS IN THE EXECUTION COMMAND WITH REAL VALUES
    2043     line=`echo  "${execute_command}" | sed 's/{{MPI_TASKS}}/$mpi_tasks/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g'`
    2044     line2=`echo  "${execute_command}" | sed 's/{{MPI_TASKS}}/1/g' | sed 's/{{TASKS_PER_NODE}}/1/g' | sed 's/palm/combine_plot_fields.x/g'`
     2047    line=`echo  "${execute_command}" | sed 's/{{/$/g' | sed 's/}}//g'`
     2048    line2=`echo  "${execute_command}" | sed 's/{{mpi_tasks}}/1/g' | sed 's/{{tasks_per_node}}/1/g' | sed 's/palm/combine_plot_fields.x/g'`
    20452049    eval line=\"$line\"
    20462050    execute_command="$line"
     
    27002704    do
    27012705       (( i = i + 1 ))
    2702        line=`echo  "${batch_directive[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{CORES}}/$cores/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_CONFIGURATION}}/${host_configuration}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{QUEUE}}/$queue/g' | sed 's/{{MEMORY}}/$memory/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g' | sed 's/{{PREVIOUS_JOB}}/$previous_job/g' | sed 's/{{TEMPDIR}}/$tempdir/g'`
     2706       line=`echo  "${batch_directive[$i]}" | sed 's/{{/$/g' | sed 's/}}//g'`
    27032707       eval line=\"$line\"
    27042708       echo  "$line"                               >>  $jobfile
     
    27222726       do
    27232727          (( i = i + 1 ))
    2724           line=`echo  "${batch_directive_transfer[$i]}" | sed 's/{{JOB_ID}}/$job_id/g' | sed 's/{{JOBFILE}}/$job_protocol_file/g' | sed 's/{{JOB_TRANSFER_PROTOCOL_FILE}}/$job_transfer_protocol_file/g' | sed 's/{{CPU_HOURS}}/$cpu_hours/g' | sed 's/{{CPU_MINUTES}}/$cpu_minutes/g' | sed 's/{{CPU_SECONDS}}/$cpu_seconds/g' | sed 's/{{NODES}}/$nodes/g' | sed 's/{{TASKS_PER_NODE}}/$tasks_per_node/g' | sed 's/{{HOST_CONFIGURATION}}/${host_configuration}/g' | sed 's/{{FNAME}}/$fname/g' | sed 's/{{PROJECT_ACCOUNT}}/$project_account/g'`
     2728          line=`echo  "${batch_directive_transfer[$i]}" | sed 's/{{/$/g' | sed 's/}}//g'`
    27252729          eval line=\"$line\"
    27262730          echo  "$line"                            >>  $jobfile
Note: See TracChangeset for help on using the changeset viewer.