Added the same fixes to the files in mpi-codes directory