def new_with_fixed_mpi_omp(self, mpi_procs, omp_threads):
        """
        Return a new `TaskManager` in which autoparal has been disabled.
        The jobs will be executed with `mpi_procs` MPI processes and `omp_threads` OpenMP threads.
        Useful for generating input files for benchmarks.
        """
        new = self.deepcopy()
        new.policy.autoparal = 0
        new.set_mpi_procs(mpi_procs)
        new.set_omp_threads(omp_threads)
        return new