<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi everyone,<br>
<br>
I have a problem with the GMSH reader.<br>
<br>
<div>I'm trying to build a new grid by reading a .msh file (attached); ideally, the computational mesh should be made only of triangles located in R^3, so it can be interpreted either as a 3D mesh with only boundary elements or as a 2D mesh embedded in R^3.<br>
<br>
When I try the first solution, that is<br>
<br>
#define ALUGRID_SIMPLEX<br>
#define GRIDDIM 3<br>
#define GRIDWORLD 3<br>
<br>
<div style="font-family:Tahoma; font-size:13px">everything works properly.<br>
<br>
Instead, if I modify<br>
<br>
#define ALUGRID_SIMPLEX<br>
#define GRIDDIM 2<br>
#define GRIDWORLD 3<br>
<br>
I get this error:<br>
<br>
Reading 2d Gmsh grid...<br>
version 2.2 Gmsh file detected<br>
file contains 304 nodes<br>
file contains 693 elements<br>
number of real vertices = 303<br>
number of boundary elements = 84<br>
number of elements = 602<br>
terminate called after throwing an instance of 'Dune::GridError'<br>
Abort trap<br>
<br>
Does anyone know if there are problems when passing from < 3 , 3 > to < 2 , 3> ?<br>
I've attached the file.<br>
<br>
Thanks in advance!<br>
<br>
Andrea<br>
__________________________________________________________<br>
<br>
Andrea Sacconi<br>
PhD student, Applied Mathematics<br>
AMMP Section, Department of Mathematics, Imperial College London,<br>
London SW7 2AZ, UK<br>
a.sacconi11@imperial.ac.uk<br>
</div>
</div>
</div>
</body>
</html>