On 6/27/23 00:25, Furkan Yildirim wrote:

I am trying to get used to deal.ii. I have a problem about the function grid in. The error that I get is the following when I try to import the msh file defines a mesh around an airfoil. The mesh is surface mesh and it is triangular. When I checked mesh file, it works accurately in gmesh but the following error comes in deal.ii.

An error occurred in line <2278> of file </home/furkan/Downloads/dealii-9.4.2/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:
::dealii::deal_II_exceptions::internals::compare_for_equality(global_vertex, n_vertices)
Additional information:
     Dimension 685 not equal to 6610.

Furkan:
it's hard to tell without seeing the mesh what may be going wrong. But if you're trying to read a surface mesh, I suspect that you need to use a Triangulation<2,3> and consequently GridIn<2,3>. Can you try that?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/


--
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/71680e1d-840e-8afa-67ec-da4e4ae8aac2%40colostate.edu.

Reply via email to