<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<p style="margin-bottom: 0in">Dear all,</p>
<p style="margin-bottom: 0in">I have successfully compiled gmsh with
the cgns output support. Now, I am trying to use it, but it is not
working :</p>
<p style="margin-bottom: 0in"><code class="western">$ gmsh case.geo
-2 -o case.cgns -format cgns<br>
...<br>
Info
: Done meshing 2D (0.543918 s)<br>
Info : 30693
vertices 49134 elements<br>
Info : Writing
'case.cgns'...<br>
Warning : CGNS I/O is at an "alpha"
software stage<br>
Erreur de segmentation</code></p>
<p style="margin-bottom: 0in">I run the commands 'gdb gmsh' and 'run
case.geo -2 -o case.cgns -format cgns' to get the following trace
:</p>
<p style="margin-bottom: 0in"><code class="western">(gdb)
backtrace<br>
#0 0x0000003e9c078900 in strlen () from
/lib64/libc.so.6<br>
#1 0x00002aaaaad88905 in cg_zone_write ()
from /usr/local/cgns-3.1/lib/libcgns.so.3.1<br>
#2
0x00000000006d6b5f in int
write_CGNS_zones<2u>(GModel&,
int, int, CGNSOptions const&, double, int, std::map<int,
std::vector<GEntity*, std::allocator<GEntity*> >,
std::less<int>, std::allocator<std::pair<int const,
std::vector<GEntity*, std::allocator<GEntity*> >
> >
> const&, int, int) ()<br>
#3 0x00000000006cd6bb in
GModel::writeCGNS (this=0x14847f0, name=..., zoneDefinition=0,
options=..., scalingFactor=1) at
/home/msoismie/local/usr/gmsh-2.6.1-source/Geo/GModelIO_CGNS.cpp:1165<br>
#4
0x00000000005b9c48 in CreateOutputFile (fileName=..., format=32,
redraw=true) at
/home/msoismie/local/usr/gmsh-2.6.1-source/Common/CreateFile.cpp:275<br>
#5
0x0000000000572ff3 in GmshBatch () at
/home/msoismie/local/usr/gmsh-2.6.1-source/Common/Gmsh.cpp:194<br>
#6
0x0000000000572733 in main (argc=7, argv=0x7fffffffd0a8) at
/home/msoismie/local/usr/gmsh-2.6.1-source/Fltk/Main.cpp:34</code></p>
<p style="margin-bottom: 0in">I looked into the source file
<code class="western">/home/msoismie/local/usr/gmsh-2.6.1-source/Geo/GModelIO_CGNS.cpp
</code>in order to try to understand my mistake, but I did not
find
the <code>case write_CGNS_zones<2u></code> (I have found
only:
<code>write_CGNS_zones<2></code> and <code>write_CGNS_zones<3></code>).</p>
<p style="margin-bottom: 0in;">After reading the warning telling
that
'the CGNS I/O is at an alpha software stage', I understand that
the
CGNS I/O has to be used carefully. Do you have any idea or
suggestion
that could help to solve this problem and allow me to use the CGNS
I/O ?<br>
</p>
<p style="margin-bottom: 0in;">Thank you in advance for your
helpfull answers.<br>
</p>
<p style="margin-bottom: 0in">Best regards,<br>
Matthieu Soismier<br>
</p>
<br>
</body>
</html>