Changeset 1171 for palm/trunk/SCRIPTS
- Timestamp:
- May 30, 2013 11:27:45 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_simple_run
r1047 r1171 19 19 # Current revisions: 20 20 # ----------------- 21 # new option -e which defines the execution command to be used to run PALM 21 22 # 22 23 # Former revisions: … … 26 27 # 1046 2012-11-09 14:38:45Z maronga 27 28 # code put under GPL (PALM 3.9) 29 # 30 # 29/08/11 - BjornW - Adapted for lcflow (ForWind cluster in Oldenburg) 31 # 18/03/10 - Siggi - Some comments changed 32 # 25/01/10 - Siggi - Generating the first version 28 33 34 35 #--------------------------------------------------------------------------------# 29 36 # palm_simple_run - a simple method for running the palm code without 30 37 # using the mrun script 31 # This script runs the palm code in a unique subdirectory (OUTPUT..., 32 # current time/date and number of processors are part of the subdirectory 33 # name). 34 # It requires that palm has been installed with command 35 # palm_simple_install and that the executable palm has been created 36 # with make in directory ...../MAKE_DEPOSITORY_simple 37 38 # Last changes: 39 # 25/01/10 - Siggi - Generating the first version 40 # 18/03/10 - Siggi - Some comments changed 41 # 29/08/11 - BjornW - Adapted for lcflow (ForWind cluster in Oldenburg) 38 # 39 # This script runs the palm code in a unique subdirectory (OUTPUT..., 40 # current time/date and number of processors are part of the subdirectory 41 # name). 42 # It requires that palm has been installed with command 43 # palm_simple_install and that the executable palm has been created 44 # with make in directory ...../MAKE_DEPOSITORY_simple 45 #--------------------------------------------------------------------------------# 42 46 43 47 … … 45 49 case=example_cbl 46 50 cpumax=999999 51 execute_for=unknown 47 52 localhost=unknown 48 53 localhost_realname=$(hostname) … … 55 60 56 61 # Read shellscript options 57 while getopts :c: l:n:p:t: option62 while getopts :c:e:l:n:p:t: option 58 63 do 59 64 case $option in 60 65 (c) case=$OPTARG;; 66 (e) execute_for=$OPTARG;; 61 67 (l) localhost=$OPTARG;; 62 68 (n) mpi_procs_per_node=$OPTARG;; … … 64 70 (t) openmp_threads=$OPTARG;; 65 71 (\?) printf "\n +++ unknown option $OPTARG \n" 66 printf "\n allowed option are - d, -f, -l, -s\n"72 printf "\n allowed option are -c, -e, -l, -n, -p, -t \n" 67 73 exit;; 68 74 esac … … 122 128 cat > ENVPAR << %%END%% 123 129 &envpar run_identifier = '$case', host = '$localhost', 124 write_binary = false, tasks_per_node = $mpi_procs_per_node,130 write_binary = 'false', tasks_per_node = $mpi_procs_per_node, 125 131 maximum_cpu_time_allowed = ${cpumax}., 126 132 revision = '$global_revision', … … 151 157 echo "*** palm will be run: MPI tasks: $mpi_procs OpenMP thread: $OMP_NUM_THREADS" 152 158 153 # IMUK: 154 mpiexec -machinefile hostfile -n $mpi_procs ./palm < runfile_atmos 159 case $execute_for in 155 160 156 # SGI-MPT HLRN: 157 # mpiexec_mpt -np $mpi_procs ./palm < runfile_atmos 161 (imuk) mpiexec -machinefile hostfile -n $mpi_procs ./palm < runfile_atmos;; 162 (sgi-mpt) mpiexec_mpt -np $mpi_procs ./palm < runfile_atmos;; 163 (hpc-flow) mpiexec -machinefile $TMPDIR/machines -n $mpi_procs -env I_MPI_FABRICS shm:ofa ./palm < runfile_atmos;; 164 (pgi-openacc) ./palm;; 165 (*) echo "+++ -e option to define execution command is missing";; 158 166 159 # HPC-FLOW (ForWind): 160 # mpiexec -machinefile $TMPDIR/machines -n $mpi_procs -env I_MPI_FABRICS shm:ofa ./palm < runfile_atmos 161 167 esac 162 168 163 169 echo "*** palm finished"
Note: See TracChangeset
for help on using the changeset viewer.