[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 |
---|
| 15 | %user_source_path @CMAKE_INSTALL_PREFIX@/JOBS/$fname/USER_CODE |
---|
| 16 | %fast_io_catalog @CMAKE_INSTALL_PREFIX@/tmp |
---|
| 17 | %local_jobcatalog @CMAKE_INSTALL_PREFIX@/job_queue |
---|
| 18 | #%remote_jobcatalog <path/to/directory> |
---|
| 19 | # |
---|
| 20 | %local_ip 127.0.0.1 |
---|
| 21 | %local_hostname @PALM_HOSTNAME@ |
---|
| 22 | %local_username @CMAKE_USERNAME@ |
---|
| 23 | # |
---|
| 24 | #%remote_ip <ip> |
---|
| 25 | #%remote_hostname <hostname> |
---|
| 26 | #%remote_loginnode <loginnode> |
---|
| 27 | #%remote_username <username> |
---|
| 28 | #%ssh_key ~/.ssh/id_rsa |
---|
| 29 | # |
---|
| 30 | #%defaultqueue <queue> |
---|
| 31 | #%submit_command /opt/moab/default/bin/msub -E |
---|
| 32 | # |
---|
| 33 | %compiler_name @MPI_Fortran_COMPILER@ |
---|
| 34 | %compiler_name_ser @CMAKE_Fortran_COMPILER@ |
---|
| 35 | %cpp_options @PALM_CPP_OPTIONS_STR@ |
---|
| 36 | %make_options -j @PALM_CORES@ |
---|
| 37 | %compiler_options @PALM_COMPILER_OPTIONS@ |
---|
| 38 | %linker_options @PALM_LINKER_OPTIONS@ |
---|
[2693] | 39 | %execute_command mpirun -n {{mpi_tasks}} ./palm |
---|
[2690] | 40 | #%memory 2300 |
---|
| 41 | #%module_commands module load fftw cray-hdf5-parallel cray-netcdf-hdf5parallel |
---|
| 42 | #%login_init_cmd module switch craype-ivybridge craype-haswell |
---|
| 43 | # |
---|
| 44 | #------------------------------------------------------------------------------- |
---|
| 45 | # Directives to be used for batch jobs |
---|
| 46 | # Lines must start with "BD:". If $-characters are required, hide them with \ |
---|
[2693] | 47 | # Internal variables can be used as {{variable_name}}. Please see documentation. |
---|
[2690] | 48 | #------------------------------------------------------------------------------- |
---|
| 49 | BD:#!/bin/bash |
---|
[2693] | 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 {{job_protocol_file}} |
---|
[2690] | 54 | BD:#PBS -j oe |
---|
[2693] | 55 | BD:#PBS -q {{queue}} |
---|
[2690] | 56 | # |
---|
| 57 | #------------------------------------------------------------------------------- |
---|
| 58 | # Directives for batch jobs used to send back the jobfiles from a remote to a local host |
---|
| 59 | # Lines must start with "BDT:". If $-characters are required, excape them with triple backslash |
---|
[2693] | 60 | # Internal variables can be used as {{variable_name}}. Please see documentation. |
---|
[2690] | 61 | #------------------------------------------------------------------------------- |
---|
| 62 | BDT:#!/bin/bash |
---|
| 63 | BDT:#PBS -N job_protocol_transfer |
---|
| 64 | BDT:#PBS -l walltime=00:30:00 |
---|
| 65 | BDT:#PBS -l nodes=1:ppn=1 |
---|
[2693] | 66 | BDT:#PBS -o {{job_transfer_protocol_file}} |
---|
[2690] | 67 | BDT:#PBS -j oe |
---|
| 68 | BDT:#PBS -q dataq |
---|
| 69 | # |
---|
| 70 | #------------------------------------------------------------------------------- |
---|
| 71 | # INPUT-commands. These commands are executed before running PALM |
---|
| 72 | # Lines must start with "IC:" |
---|
| 73 | #------------------------------------------------------------------------------- |
---|
| 74 | IC:export ATP_ENABLED=1 |
---|
| 75 | IC:export MPICH_GNI_BTE_MULTI_CHANNEL=disabled |
---|
| 76 | IC:ulimit -s unlimited |
---|
| 77 | # |
---|
| 78 | #------------------------------------------------------------------------------- |
---|
| 79 | # ERROR-commands. These commands are executed when PALM terminates abnormally |
---|
| 80 | # Lines must start with "EC:" |
---|
| 81 | #------------------------------------------------------------------------------- |
---|
| 82 | EC:[[ $locat = execution ]] && cat RUN_CONTROL |
---|
| 83 | # |
---|
| 84 | #------------------------------------------------------------------------------- |
---|
| 85 | # OUTPUT-commands. These commands are executed when PALM terminates normally |
---|
| 86 | # Lines must start with "OC:" |
---|
| 87 | #------------------------------------------------------------------------------- |
---|
| 88 | # |
---|
| 89 | # Combine 1D- and 3D-profile output (these files are not usable for plotting) |
---|
| 90 | OC:[[ -f LIST_PROFIL_1D ]] && cat LIST_PROFIL_1D >> LIST_PROFILE |
---|
| 91 | OC:[[ -f LIST_PROFIL ]] && cat LIST_PROFIL >> LIST_PROFILE |
---|
| 92 | # |
---|
| 93 | # Combine all particle information files |
---|
| 94 | OC:[[ -f PARTICLE_INFOS/_0000 ]] && cat PARTICLE_INFOS/* >> PARTICLE_INFO |
---|
| 95 | |
---|