There are three options for running the code in parallel in the config file: MPI, OMP, and hybrid. Which would be the best option while running the code on a cluster? Also, how will the options for the SLURM script look like? Is it possible to share a sample SLURM script for running OpenLB code on a cluster?
I would really appreciate any help in this matter.
For the current release we recommend usage of the plain MPI-only mode. Hybrid mode will yield an advantage for the upcoming release (due to SIMD support and other architectural improvements).
The specifics of a SLURM script are quite cluster-dependent. For example, here is a script for MPI-only execution on the HoreKa supercomputer at KIT (MPI-only on 10 nodes, compiled using the Intel C++ compiler and MPI libraries):