message: attempt to set parmesh attr
diff: @@ -518,6 +518,10 @@ ParPumiMesh::ParPumiMesh(MPI_Comm comm, apf::Mesh2* apf_mesh,
  NumOfElements = countOwned(apf_mesh,Dim);
  elements.SetSize(NumOfElements);
  + // Look for the gmsh physical entity tag
  + const char* gmshTagName = "gmsh_physical_entity";
  + apf::MeshTag* gmshPhysEnt = apf_mesh->findTag(gmshTagName);
  +
  // Read elements from SCOREC Mesh
  itr = apf_mesh->begin(Dim);
  for (int j = 0; (ent = apf_mesh->iterate(itr)); j++)
  @@ -525,9 +529,14 @@ ParPumiMesh::ParPumiMesh(MPI_Comm comm, apf::Mesh2* apf_mesh,
  // Get vertices
  apf::Downward verts;
  apf_mesh->getDownward(ent,0,verts);
  + // Get attribute Tag from gmsh if it exists
  + int attr = 1;
  + if( gmshPhysEnt ) {
  + apf_mesh->getIntTag(ent,gmshPhysEnt,&attr);
  + if(!MyRank) fprintf(stderr, "read attr %d\n", attr);
  + }
  // Get attribute Tag vs Geometry
  - int attr = 1;
  int geom_type = apf_mesh->getType(ent);
  elements[j] = NewElement(geom_type);
  ReadPumiElement(ent, verts, attr, v_num_loc, elements[j]);
  