Fixed bug in 2D MPI simulations

- dimensionality not communicated to other procs
Added rank output to error and warning messages