Fix setting (t)MPI ranks/processes

- Setting mpi_threads_ref caused errors because value is
  compared to numbers
- $mpi_processes_ref > $new_mpi_ranks caused tmpi threads to be
  set if now domain decomposition was found for <8

Change-Id: I350ae7f51c4cb34ea384471c4b07777fc9ff5533