coded mpi drawing reduction

also had to remove -Wpedantic
since mpich mpi.h has "long long" in it.