I am trying to read a mesh (.msh file) generated by Gmsh (version 4.7.1), 
but getting an error. I am using the following commands:

      GridIn<dim> grid_in;
      grid_in.attach_triangulation(triangulation);
      std::ifstream input_file("ma_mesh3.msh");            
      grid_in.read_msh(input_file);

The issue is occurring while executing

grid_in.read_msh(input_file)

This is the error message:

Exception on processing: 

--------------------------------------------------------
An error occurred in line <1534> of file 
</home/krishanu/Google_Drive/dealii/dealii_920/dealii-9.2.0/source/grid/grid_in.cc>
 
in function
    void dealii::GridIn<dim, spacedim>::read_msh(std::istream&) [with int 
dim = 2; int spacedim = 2; std::istream = std::basic_istream<char>]
The violated condition was: 
    n_physicals < 2
Additional information: 
    More than one tag is not supported!


Am I doing something wrong, or is there any particular version of Gmsh that 
should be used to generate meshes that are compatible with deal.ii?

Thanks for any help or advice.


-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/7760fdd1-43b7-41a2-a49c-3ae1e0d6bf7en%40googlegroups.com.

Reply via email to