[Gmsh] Coordinate format

Fabrice Pepin 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
that reads

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.


Jeremy Theler

On Sat, 2017-01-21 at 22:53 +0000, Fabrice Pepin wrote:
> Hello,
> 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.
> Fabrice.
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

gmsh mailing list
gmsh at onelab.info

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170123/221b6ca2/attachment-0001.html>

More information about the gmsh mailing list