[Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-01 Thread bastil2...@yahoo.de
Hi all, I get this error when reading in a (large) Ensight binary case that can be read by Ensight. ens_checker also reports no errors. The problem is reported from line 2502 from vkEnSightGoldBinaryReader.cxx (revision 1.83). It seems that Ensight Cases can be ok even if this check fails I

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-01 Thread Renato Elias
Are you writting your files from Fortran codes using unformatted "binaries"? Renato. On Tue, Sep 1, 2009 at 2:50 PM, bastil2...@yahoo.de wrote: > Hi all, > > I get this error when reading in a (large) Ensight binary case that can > be read by Ensight. ens_checker also reports no errors. > > The

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-01 Thread Zhanping Liu
Hi BastiL: As you know, Line #2502 (see below) is used to check whether or not the (total) number of points is valid in relation to the file size. I feel that this is a reasonable as well as necessary check. A valid EnSight file is supposed to pass this check. Is your Ensight dataset divided in

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-01 Thread bastil2...@yahoo.de
Hi Zhanping, I don't really understand what you mean by "divided into multiple files"? It is an export from the FLUENT CFD code and it consists of an case, geo and several scalar files. What can I do to support you further finding the problem? Regards BastiL Zhanping Liu schrieb: > Hi BastiL: >

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-02 Thread bastil2...@yahoo.de
Hallo Renato, no these are Ensight-Files that have been written by the commerical FLUENT CFD solver. I can read some of them but not all. Regards BastiL Renato Elias schrieb: > Are you writting your files from Fortran codes using unformatted > "binaries"? > > Renato. > > On Tue, Sep 1, 2009 at 2

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-03 Thread bastil2...@yahoo.de
Zhanping, all: I have gone forward with this problem today. Uncommenting all the checks in vkEnSightGoldBinaryReader.cxx makes paraview reading the file without any problem. I think the problem with the checks are related to a 64Bit issue. It seems to me as this->FileSize is incorrect for this cas

Re: [Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly

2009-09-03 Thread Zhanping Liu
The number of points (numPts, on line 2502) returned by vtkEnSightGoldBinaryReader::ReadInt(int *result) is of type int, whereas the file size (2.2GB) is beyond the valid range. I will fix it. Thanks. -Zhanping On Thu, Sep 3, 2009 at 2:40 PM, bastil2...@yahoo.de wrote: > Zhanping, all: > > I h