fix several bugs by help of mpi_barrier
commit multi-level scheduling code.