To perform manual MPI timing (hardcoded into the modified Schwimmbad library in the ADACS branch), add the argument `--mpi-timing 1`, which will give a printout at the end of the run in the log file. To record MPI timings at regular 60 seconds intervals, add `--mpi-timing-interval 60`.
Note: The MPI timing printout at the end of the run is a sum of all worker tasks, while the periodic timing intervals are only the timings for **one** worker task. This is to prevent necessary MPI communication during the run.
Using excessively short intervals will result in large overheads. The timing results for each interval are saved in a JSON file `mpi_worker_timing.json` at the end of the run.
## Modifications to the Schwimmbad library
There is some misunderstanding of how the library should be called. The Schwimmbad documentation itself contains incorrect instructions.
There is some misunderstanding of how the library should be called in the original implementation. The Schwimmbad documentation itself contains incorrect instructions.