fix bug of MPI_Allreduce in ZConstraint, the MPITYPE is set to MPI_DOUBLE, however, the corret type is MPI_INT. Therefore, when we turn on the optimization flag, it causes a seg fault