Mpi fixes

Peter W. Draper requested to merge mpi_fixes into master

Batch jobs on the COSMA4 queue (using intel compiler and MPI) do not run. The main reason is an overrun of the cpuid array because of the number of cores (not a power of 2). This patch attempts to fix that.

Also includes an additional fix for a incorrect size memcpy I discovered.

Merge request reports