[Paraview] capability to read data from big-endian machine

Hedieh Ebrahimi hedieh.ebrahimi at amphos21.com
Wed Apr 12 13:27:59 EDT 2017


Thanks Christopher,
I just opened an issue #17370 at paraview/issues.



Hedieh Ebrahimi
Consultant <https://es.linkedin.com/pub/hedieh-ebrahimi/50/229/8a7>



On 12 April 2017 at 18:22, Christopher Neal <chrisneal at snumerics.com> wrote:

> Hi Hedieh,
>
> I know that you can create a request for this in the 'issues' tab of the
> Paraview Gitlab repository. That is their formal system for tracking
> feedback/issues related to Paraview
>
> https://gitlab.kitware.com/paraview/paraview/issues
>
> Best regards,
> Chris
>
> On Wed, Apr 12, 2017 at 10:38 AM, Hedieh Ebrahimi <
> hedieh.ebrahimi at amphos21.com> wrote:
>
>> Dear all,
>>
>> When trying to read data generated on supercomputer (big-endian), the
>> ParaView PFlotran-reader fails. This is because the data generated on
>> the supercomputer is big-endian whereas my machine (Intel machine) uses
>> little-endian.
>>
>> The workaround to fix this is to go to following directory:
>>
>> Utilities/VisItBridge/databases/PFLOTRAN
>> and to the following file : avtPFLOTRANFileFormat.C
>>
>> In the functions avtPFLOTRANFileFormat::GetVar(...) and
>> avtPFLOTRANFileFormat::GetVectorVar(...)
>> there are the following if-statement TWO TIMES IN BOTH FUNCTIONS, so 4
>> modifications are needed:
>>
>>         if (H5Tequal(intype, H5T_NATIVE_FLOAT) ||
>>             H5Tequal(intype, H5T_NATIVE_DOUBLE) ||
>>             H5Tequal(intype, H5T_NATIVE_LDOUBLE) )
>>
>> Replace ALL 4 above  OCCURRENCES by
>>
>>         if (H5Tequal(intype, H5T_NATIVE_FLOAT) ||
>>             H5Tequal(intype, H5T_NATIVE_DOUBLE) ||
>>             H5Tequal(intype, H5T_NATIVE_LDOUBLE) ||
>>             H5Tequal(intype, H5T_IEEE_F32BE) ||
>>             H5Tequal(intype, H5T_IEEE_F64BE) )
>>
>> The problem is I have to compile paraview from source for each update or
>> on every machine. I was wondering whether this capability to read data from
>> big-endian machine could be included.
>> I´d appreciate your answer,
>>
>> Hedieh Ebrahimi
>> Consultant <https://es.linkedin.com/pub/hedieh-ebrahimi/50/229/8a7>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Christopher Neal
> Research Engineer
> Streamline Numerics, Inc.
> https://www.snumerics.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170412/dae68965/attachment.html>


More information about the ParaView mailing list