[Paraview] Cosmo Reader - 64bit IDs

David E DeMarle dave.demarle at kitware.com
Fri Sep 2 10:04:43 EDT 2011


It's on the bug tracker now. http://paraview.org/Bug/view.php?id=12569

In the meantime I think a #define or adding -DID_64 to the cmake's
CMAKE_C_FLAGS and CMAKE_CXX_FLAGS ought to do it.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Thu, Sep 1, 2011 at 4:50 PM, Jon Woodring <woodring at lanl.gov> wrote:
> The way it is coded is that the reader is based on the HACC (MC3) reader
> code, and it is compiled directly as either 32 bit tags or 64 bit tags.
>  Likewise, the same is for the fields, that could be stored as floats or
> doubles.
>
> I had considered compiling multiple versions of the cosmo reader code to
> support selecting the version at run-time, but hadn't done anything with it
> -- but it is an issue.
>
> -Jon
>
> On 09/01/2011 02:46 PM, David E DeMarle wrote:
>>
>> I will take a look at this tomorrow. I suspect it was hardcoded
>> initially but I should be able to make that configurable pretty
>> easily.
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909
>>
>>
>>
>> On Wed, Aug 31, 2011 at 10:43 AM, joseph insley<insley at mcs.anl.gov>
>>  wrote:
>>>
>>> Hi,
>>>
>>> I have some large data sets in the Cosmo format that I'd like to
>>> visualize with ParaView, but the format is slightly different from that
>>> expected by the built-in CosmoReader.  Because the data sets I have use a
>>> very large number of particles, they use a 64bit int for the ID tag, rather
>>> than the 32bit expected by the reader.   Looking at the source code for the
>>> reader (and HaloFinder) I see that there is an #ifdef ID_64, which if I
>>> understand correctly will compile the code using 64 bits for the particle
>>> IDs, just as I need.  So my first question is, is this understanding
>>> correct? If so, how do I configure ParaView to build with the ID_64 defined?
>>>  Is there some place that I need to add -DID_64 when running ccmake?  Also,
>>> I assume this means that it will then only read datasets with the 64bit IDs.
>>>  I do also have some data sets that use the standard 32bit ID format.  I was
>>> hoping there would be a way (via the GUI perhaps) to specify the precision
>>> of the IDs, and use the sam
>
> e e
>>>
>>>  xecutable, rather than maintain two builds of ParaView to accommodate
>>> the two cosmo formats.
>>>
>>> Any insight on any of this would be greatly appreciated.
>>>
>>> Thanks,
>>> joe.
>>> _______________________________________________
>>> 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
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>
>


More information about the ParaView mailing list