Changeset 2693 for palm/trunk/SCRIPTS/palmrun
- Timestamp:
- Dec 13, 2017 12:33:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r2670 r2693 27 27 # ----------------- 28 28 # $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 29 33 # test printouts removed 30 34 # … … 2041 2045 2042 2046 # 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'` 2045 2049 eval line=\"$line\" 2046 2050 execute_command="$line" … … 2700 2704 do 2701 2705 (( 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'` 2703 2707 eval line=\"$line\" 2704 2708 echo "$line" >> $jobfile … … 2722 2726 do 2723 2727 (( 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'` 2725 2729 eval line=\"$line\" 2726 2730 echo "$line" >> $jobfile
Note: See TracChangeset
for help on using the changeset viewer.