message: bug fix for writing attribute
diff: @@ -4339,6 +4339,7 @@ void ParMesh::PrintAsOne(std::ostream &out)
  nv = NumOfElements;
  nc = NumOfElements;
  MPI_Reduce(&nv, &ne, 1, MPI_INT, MPI_SUM, 0, MyComm);
  + MPI_Allreduce(&nv, &nc, 1, MPI_INT, MPI_SUM, MyComm);
  if (MyRank == 0)
  {
  out << "\n\nelements\n" << ne << '\n';
  @@ -4372,12 +4373,12 @@ void ParMesh::PrintAsOne(std::ostream &out)
  MPI_Recv(&attr_ne[0], nc, MPI_INT, p, 446, MyComm, &status);
  }
  - int j = 0;
  + int m = 0;
  for (i = 0; i < ne; )
  {
  // processor number + 1 as attribute and geometry type
  // out << p+1 << ' ' << ints[i];
  - out << attr_ne[j] << ' ' << ints[i];
  + out << attr_ne[m] << ' ' << ints[i];
  // vertices
  k = Geometries.GetVertices(ints[i++])->GetNPoints();
  for (j = 0; j < k; j++)
  @@ -4385,9 +4386,9 @@ void ParMesh::PrintAsOne(std::ostream &out)
  out << ' ' << vc + ints[i++];
  }
  out << '\n';
  + m++;
  }
  vc += nv;
  - j++;
  }
  }
  else
  @@ -4419,7 +4420,7 @@ void ParMesh::PrintAsOne(std::ostream &out)
  attr_ne[i] = elements[i]->GetAttribute();
  }
  MFEM_ASSERT(attr_ne.Size() == nc, "");
  - if (ne)
  + if (nc)
  {
  MPI_Send(&attr_ne[0], nc, MPI_INT, 0, 446, MyComm);
  }
  