[2523] | 1 | #$Id: .palm.config.idefix 4814 2020-12-09 13:08:08Z suehring $ |
---|
| 2 | #This configuration file is for running jobs locally (interactive or batch mode) |
---|
| 3 | #on host idefix. |
---|
| 4 | #------------------------------------------------------------------------------- |
---|
| 5 | #column 1 column 2 |
---|
| 6 | #name of variable value of variable (~ must not be used) |
---|
| 7 | #------------------------------------------------------------------------------- |
---|
[4814] | 8 | %base_directory $HOME/palm/current_version |
---|
| 9 | %base_data ~/palm/current_version/JOBS |
---|
| 10 | %source_path $HOME/palm/current_version/trunk/SOURCE |
---|
| 11 | %user_source_path $base_directory/JOBS/$run_identifier/USER_CODE |
---|
| 12 | %fast_io_catalog /work/<replace_by_your_IDEFIX_username> |
---|
| 13 | %restart_data_path $fast_io_catalog |
---|
| 14 | %output_data_path /work/<replace_by_your_IDEFIX_username>/JOBS/ |
---|
| 15 | %local_jobcatalog $base_data/$run_identifier/LOG_FILES |
---|
| 16 | %remote_jobcatalog $base_data/$run_identifier/LOG_FILES |
---|
| 17 | |
---|
[2523] | 18 | %local_ip 130.75.105.239 |
---|
| 19 | %local_username <replace_by_your_IDEFIX_username> |
---|
| 20 | %defaultqueue workq |
---|
| 21 | %submit_command /opt/pbspro/default/bin/qsub |
---|
[4814] | 22 | |
---|
[2523] | 23 | %compiler_name mpif90 |
---|
| 24 | %compiler_name_ser ifort |
---|
| 25 | %cpp_options -cpp -D__parallel -DMPI_REAL=MPI_DOUBLE_PRECISION -DMPI_2REAL=MPI_2DOUBLE_PRECISION -D__netcdf -D__netcdf4 -D__netcdf4_parallel -D__fftw -D__intel_compiler |
---|
| 26 | %make_options -j 4 |
---|
[3205] | 27 | %compiler_options -fpe0 -O3 -cpp -fp-model source -ftz -no-prec-div -no-prec-sqrt -ip -I /opt/netcdf4_hdf5parallel/4411c_443f/intel/include -L/opt/netcdf4_hdf5parallel/4411c_443f/intel/lib -L/opt/hdf5-parallel/1.10.0-patch1/intel/lib -lnetcdf -lnetcdff -I /opt/fftw/3.3.6-pl1/mvapich2-intel/include -L/opt/fftw/3.3.6-pl1/mvapich2-intel/lib -lfftw3 |
---|
| 28 | %linker_options -fpe0 -O3 -cpp -fp-model source -ftz -no-prec-div -no-prec-sqrt -ip -I /opt/netcdf4_hdf5parallel/4411c_443f/intel/include -L/opt/netcdf4_hdf5parallel/4411c_443f/intel/lib -L/opt/hdf5-parallel/1.10.0-patch1/intel/lib -lnetcdf -lnetcdff -I /opt/fftw/3.3.6-pl1/mvapich2-intel/include -L/opt/fftw/3.3.6-pl1/mvapich2-intel/lib -lfftw3 |
---|
[2523] | 29 | %hostfile auto |
---|
| 30 | %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 |
---|
[2693] | 31 | %execute_command mpirun -machinefile hostfile -n {{mpi_tasks}} palm |
---|
[4814] | 32 | |
---|
[2554] | 33 | # BATCH-directives to be used for batch jobs. |
---|
[2523] | 34 | BD:#!/bin/bash |
---|
[3346] | 35 | BD:#PBS -N{{run_id}} |
---|
[2693] | 36 | BD:#PBS -l walltime={{cpu_hours}}:{{cpu_minutes}}:{{cpu_seconds}} |
---|
| 37 | BD:#PBS -l ncpus={{cores}} |
---|
| 38 | BD:#PBS -o{{job_protocol_file}} |
---|
[2523] | 39 | BD:#PBS -j oe |
---|
[2693] | 40 | BD:#PBS -q{{queue}} |
---|
[4814] | 41 | |
---|
[2523] | 42 | # BATCH-directives for batch jobs used to send back the jobfile from a remote to a local host |
---|
| 43 | BDT:#!/bin/bash |
---|
| 44 | BDT:#PBS -N job_protocol_transfer |
---|
| 45 | BDT:#PBS -l walltime=00:30:00 |
---|
| 46 | BDT:#PBS -l ncpus=1 |
---|
[2693] | 47 | BDT:#PBS -o{{job_transfer_protocol_file}} |
---|
[2523] | 48 | BDT:#PBS -j oe |
---|
| 49 | BDT:#PBS -q workq |
---|
[4814] | 50 | |
---|
[2523] | 51 | #---------------------------------------------------------------------------- |
---|
[4814] | 52 | # INPUT-commands, executed before running PALM - lines must start with "IC:" |
---|
[2523] | 53 | #---------------------------------------------------------------------------- |
---|
| 54 | IC:export MV2_ENABLE_AFFINITY=0 |
---|
| 55 | IC:export MV2_SHOW_CPU_BINDING=1 |
---|
| 56 | IC:export MV2_CPU_BINDING_POLICY=scatter |
---|
| 57 | IC:ulimit -s unlimited |
---|
[4814] | 58 | |
---|
[2523] | 59 | #---------------------------------------------------------------------------- |
---|
| 60 | # ERROR-commands - executed when program terminates abnormally |
---|
| 61 | #---------------------------------------------------------------------------- |
---|
| 62 | EC:[[ \$locat = execution ]] && cat RUN_CONTROL |
---|
| 63 | EC:[[ \$locat = execution ]] && cat PARTICLE_INFOS/* |
---|
[4814] | 64 | |
---|
[2523] | 65 | #---------------------------------------------------------------------------- |
---|
| 66 | # OUTPUT-commands - executed when program terminates normally |
---|
| 67 | #---------------------------------------------------------------------------- |
---|
| 68 | # Combine 1D- and 3D-profile output (these files are not usable for plotting) |
---|
| 69 | OC:[[ -f LIST_PROFIL_1D ]] && cat LIST_PROFIL_1D >> LIST_PROFILE |
---|
| 70 | OC:[[ -f LIST_PROFIL ]] && cat LIST_PROFIL >> LIST_PROFILE |
---|
[4814] | 71 | |
---|
[2523] | 72 | # Combine all particle information files |
---|
| 73 | OC:[[ -f PARTICLE_INFOS/_0000 ]] && cat PARTICLE_INFOS/* >> PARTICLE_INFO |
---|