The actual communication between processors, where the ghostlines are exhanged before each integration steps, was implemented relatively easily in the 1D case, the reason being that the arrays remain contiguous in memory. The function for exchanging horizontal ghost lines was changed into an mpi version which contains only two lines for the communication: