Fixed a bug in loop while initializing allnodes.myflags
Adding the combined barrier program for omp and mpi