Hello,
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...
Fabrice.

      De : Jeremy Theler <[email protected]>
 À : [email protected] 
 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.

Cheers


-- 
Jeremy Theler
www.seamplex.com



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
> [email protected]
> http://onelab.info/mailman/listinfo/gmsh


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh


   
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to