[Gmsh] binary file format - fortran
David.Colignon at ulg.ac.be
Wed May 5 10:32:29 CEST 2010
could it be a 32bit/64bit problem ? What is your operating system, is it 32 or 64 bit, and which compilers and flags do
you use to compile your fortran code ?
David Colignon, Ph.D.
Collaborateur Logistique du F.R.S.-FNRS
CÉCI - Consortium des Équipements de Calcul Intensif
ACE - Applied & Computational Electromagnetics
Université de Liège
4000 Liège - BELGIQUE
Tél: +32 (0)4 366 37 32
Fax: +32 (0)4 366 29 10
On 05/05/10 08:46, Hossein Talebi wrote:
> First of all thank you for developing and supporting gmsh.
> In short, I have a finite element code in Fortran and I try to use gmsh
> as post processor. I tried dumping files in ASCII format and gmsh was
> able to recognize the dumped file and showed the mesh.
> However, I have problems dumping the Binary format and gmsh cannot read
> my file, or recognize the data structure.
> I think there is something wrong with integer/real/double precision data.
> I use FORTRAN and all my integers have 4 bytes. The real( double
> precision) have 8 bytes.
> In the $MeshFormat I then have to write 20 bytes (version_number=2.1
> (8), file_type(4),data_size=8 (4) and one_binary=1(4)). However, gmsh
> cannot recognize the binary input.
> Please help. I could be perfect you if I can see some samples done with
> Fortran. Thank you.
> gmsh mailing list
> gmsh at geuz.org
More information about the gmsh