added mpi init check and added cml input to init mpi for virials.