[2690] | 1 | ################################################################################ |
---|
| 2 | # This is a configuration file for PALM. It must be named: .palm.config.<suffix> |
---|
| 3 | # in order to use it, call palmbuild and palmrun with the option: -h <suffix> |
---|
| 4 | # Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/jobcontrol |
---|
| 5 | ################################################################################ |
---|
| 6 | # |
---|
| 7 | #------------------------------------------------------------------------------- |
---|
| 8 | # General compiler and host configuration section. |
---|
| 9 | # Variable declaration lines must start with a percent character |
---|
| 10 | # Internal variables can be used as {{VARIABLE_NAME}}. Please see documentation. |
---|
| 11 | #------------------------------------------------------------------------------- |
---|
| 12 | %base_directory @CMAKE_INSTALL_PREFIX@ |
---|
| 13 | %base_data @CMAKE_INSTALL_PREFIX@/JOBS |
---|
| 14 | %source_path @CMAKE_INSTALL_PREFIX@/trunk/SOURCE |
---|
[3236] | 15 | %user_source_path @CMAKE_INSTALL_PREFIX@/JOBS/$run_identifier/USER_CODE |
---|
[2690] | 16 | %fast_io_catalog @CMAKE_INSTALL_PREFIX@/tmp |
---|
[4814] | 17 | %restart_data_path @CMAKE_INSTALL_PREFIX@/tmp |
---|
| 18 | %output_data_path @CMAKE_INSTALL_PREFIX@/JOBS |
---|
| 19 | %local_jobcatalog @CMAKE_INSTALL_PREFIX@/JOBS/$run_identifier/LOG_FILES |
---|
[2690] | 20 | #%remote_jobcatalog <path/to/directory> |
---|
| 21 | # |
---|
| 22 | %local_ip 127.0.0.1 |
---|
| 23 | %local_hostname @PALM_HOSTNAME@ |
---|
| 24 | %local_username @CMAKE_USERNAME@ |
---|
| 25 | # |
---|
| 26 | #%remote_ip <ip> |
---|
| 27 | #%remote_hostname <hostname> |
---|
| 28 | #%remote_loginnode <loginnode> |
---|
| 29 | #%remote_username <username> |
---|
| 30 | #%ssh_key ~/.ssh/id_rsa |
---|
| 31 | # |
---|
| 32 | #%defaultqueue <queue> |
---|
[4814] | 33 | #%project_account <project-account> |
---|
[2690] | 34 | #%submit_command /opt/moab/default/bin/msub -E |
---|
| 35 | # |
---|
| 36 | %compiler_name @MPI_Fortran_COMPILER@ |
---|
| 37 | %compiler_name_ser @CMAKE_Fortran_COMPILER@ |
---|
| 38 | %cpp_options @PALM_CPP_OPTIONS_STR@ |
---|
| 39 | %make_options -j @PALM_CORES@ |
---|
| 40 | %compiler_options @PALM_COMPILER_OPTIONS@ |
---|
| 41 | %linker_options @PALM_LINKER_OPTIONS@ |
---|
[3682] | 42 | %execute_command @PALM_EXECUTE_COMMAND@ ./palm |
---|
[2690] | 43 | #%memory 2300 |
---|
[3199] | 44 | #%module_commands module switch craype-ivybridge craype-haswell; module load fftw cray-hdf5-parallel cray-netcdf-hdf5parallel |
---|
| 45 | #%login_init_cmd .execute_special_profile |
---|
[2690] | 46 | # |
---|
| 47 | #------------------------------------------------------------------------------- |
---|
| 48 | # Directives to be used for batch jobs |
---|
| 49 | # Lines must start with "BD:". If $-characters are required, hide them with \ |
---|
[2693] | 50 | # Internal variables can be used as {{variable_name}}. Please see documentation. |
---|
[2690] | 51 | #------------------------------------------------------------------------------- |
---|
| 52 | BD:#!/bin/bash |
---|
[4814] | 53 | #BD:#PBS -A {{project_account}} |
---|
[4484] | 54 | BD:#PBS -N {{run_id}} |
---|
[2693] | 55 | BD:#PBS -l walltime={{cpu_hours}}:{{cpu_minutes}}:{{cpu_seconds}} |
---|
| 56 | BD:#PBS -l nodes={{nodes}}:ppn={{tasks_per_node}} |
---|
| 57 | BD:#PBS -o {{job_protocol_file}} |
---|
[2690] | 58 | BD:#PBS -j oe |
---|
[2693] | 59 | BD:#PBS -q {{queue}} |
---|
[2690] | 60 | # |
---|
| 61 | #------------------------------------------------------------------------------- |
---|
| 62 | # Directives for batch jobs used to send back the jobfiles from a remote to a local host |
---|
| 63 | # Lines must start with "BDT:". If $-characters are required, excape them with triple backslash |
---|
[2693] | 64 | # Internal variables can be used as {{variable_name}}. Please see documentation. |
---|
[2690] | 65 | #------------------------------------------------------------------------------- |
---|
| 66 | BDT:#!/bin/bash |
---|
[4814] | 67 | #BDT:#PBS -A {{project_account}} |
---|
[2690] | 68 | BDT:#PBS -N job_protocol_transfer |
---|
| 69 | BDT:#PBS -l walltime=00:30:00 |
---|
| 70 | BDT:#PBS -l nodes=1:ppn=1 |
---|
[2693] | 71 | BDT:#PBS -o {{job_transfer_protocol_file}} |
---|
[2690] | 72 | BDT:#PBS -j oe |
---|
| 73 | BDT:#PBS -q dataq |
---|
| 74 | # |
---|
| 75 | #------------------------------------------------------------------------------- |
---|
[4814] | 76 | # INPUT-commands. These commands are executed before running PALM |
---|
| 77 | # Lines must start with "IC:" |
---|
[2690] | 78 | #------------------------------------------------------------------------------- |
---|
| 79 | IC:ulimit -s unlimited |
---|
| 80 | # |
---|
| 81 | #------------------------------------------------------------------------------- |
---|
| 82 | # ERROR-commands. These commands are executed when PALM terminates abnormally |
---|
[4814] | 83 | # Lines must start with "EC:" |
---|
[2690] | 84 | #------------------------------------------------------------------------------- |
---|
| 85 | EC:[[ $locat = execution ]] && cat RUN_CONTROL |
---|
| 86 | # |
---|
| 87 | #------------------------------------------------------------------------------- |
---|
| 88 | # OUTPUT-commands. These commands are executed when PALM terminates normally |
---|
[4814] | 89 | # Lines must start with "OC:" |
---|
[2690] | 90 | #------------------------------------------------------------------------------- |
---|
| 91 | # |
---|
| 92 | # Combine 1D- and 3D-profile output (these files are not usable for plotting) |
---|
| 93 | OC:[[ -f LIST_PROFIL_1D ]] && cat LIST_PROFIL_1D >> LIST_PROFILE |
---|
| 94 | OC:[[ -f LIST_PROFIL ]] && cat LIST_PROFIL >> LIST_PROFILE |
---|
| 95 | # |
---|
| 96 | # Combine all particle information files |
---|
| 97 | OC:[[ -f PARTICLE_INFOS/_0000 ]] && cat PARTICLE_INFOS/* >> PARTICLE_INFO |
---|