[Gmsh] Coordinate format
fa_201 at yahoo.fr
Mon Jan 23 22:27:20 CET 2017
Coding is not an option for me but thanks anyway for the answer.Having the option of the number of digits would be nice especially for regular applications where 16 digits are a bit too much...
De : Jeremy Theler <jeremy at seamplex.com>
À : gmsh at onelab.info
Envoyé le : Lundi 23 janvier 2017 9h39
Objet : Re: [Gmsh] Coordinate format
Not that I am aware of. You might:
a. edit the Gmsh source code, particularly line 74 of Geo/MVertex.cpp
fprintf(fp, "%d %.16g %.16g %.16g ", _index, x() * scalingFactor,
b. edit the Calculix source code (good luck, it is Fortran!)
c. use another more modern option, say www.seamplex.com/fino
BTW, for the original developers, it would be nice to somehow being able
to change the hardcoded %.16g in runtime, for example to reduce the size
of the resulting ASCII mesh files.
On Sat, 2017-01-21 at 22:53 +0000, Fabrice Pepin wrote:
> The length of node coordinates can be too long for Calculix. I work
> around by deleting one digit on some nodes. Is it possible to add an
> option defining the number of digits for nodal coordinates ?
> Thank you.
> gmsh mailing list
> gmsh at onelab.info
gmsh mailing list
gmsh at onelab.info
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh