In order to be a bit more user friendly, printing done potentially before MPI is instantiated, could, check for environment variables like OMPI_COMM_WORLD_RANK or SLURM_PROCID, and if found, and set to 0, could limit printing to one rank
of course if the variables are not found we could continue as currently to print to all ranks