<div dir="ltr"><div><div><div><div><div>Hi <span class="gmail-m_-5280266719624570068gmail-hb"><span dir="ltr" name="Frederic" class="gmail-m_-5280266719624570068gmail-g2">Frederic</span>,<br><br></span></div><span class="gmail-m_-5280266719624570068gmail-hb">have you been able to make progress on this issue?<br><br></span></div><span class="gmail-m_-5280266719624570068gmail-hb">I apparently ran into the same problem, which is quite frustrating since there is currently no way to </span>concatenate more than 10 data items, despite having to independent implementations of the xdmf reader!<br><br></div>I filed two bug reports for these issues in ParaView (not sure though if this is an ParaView/VTK or XDMF issue):<br><a href="https://gitlab.kitware.com/paraview/paraview/issues/17516">https://gitlab.kitware.com/paraview/paraview/issues/17516</a><br><a href="https://gitlab.kitware.com/paraview/paraview/issues/17517">https://gitlab.kitware.com/paraview/paraview/issues/17517</a><br><br></div>Please feel free to add more information or test cases to these bug reports as well.<br><br></div>@Andrew: I have never seen the <span class="gmail-im"> "$0|$1" syntax in any xdmf documentation. When was this added and shouldn't this be mentioned in the xdmf wiki (<a href="http://www.xdmf.org/index.php/XDMF_Model_and_Format#Function">http://www.xdmf.org/index.php/XDMF_Model_and_Format#Function</a>)?<br></span><div><div><br></div><div>Cheers,<br></div><div>Armin<br><br></div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 12:41 AM, Burns, Andrew J CTR USARMY RDECOM ARL (US) <span dir="ltr"><<a href="mailto:andrew.j.burns35.ctr@mail.mil" target="_blank">andrew.j.burns35.ctr@mail.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In Xdmf3's reader, the assignment of variables occurs in XdmfArray::populateItem. The evaluation of the function occurs in XdmfFunction "|" denotes XdmfFunction::chunk (effectively concatenate). From there it should be a bunch of XdmfArray::insert calls.<br>
<br>
Xdmf3's source in Paraview is under Paraview/VTK/ThirdParty/xdmf3.<br>
<span class=""><br>
Andrew Burns<br>
Software Engineer | Parsons<br>
Phone: 410-306-0409<br>
ARL DSRC<br>
<a href="mailto:andrew.j.burns35.ctr@mail.mil">andrew.j.burns35.ctr@mail.mil</a><br>
<br>
-----Original Message-----<br>
From: ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@<wbr>paraview.org</a>] On Behalf Of Frederic Perez<br>
</span><span class="">Sent: Saturday, February 11, 2017 6:03 PM<br>
To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: Re: [Paraview] [Non-DoD Source] XDMF makes paraview crash with JOIN<br>
<br>
All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.<br>
<br>
<br>
<br>
<br>
----<br>
<br>
</span><span class="">Hi,<br>
<br>
I have been looking closely into this problem in the past few days, and I have never been able to make the Xdmf3 reader to JOIN any HDF5 data. Neither with the JOIN() syntax nor with the "$0|$1" one. At least to populate an Attribute's DataItem. The Xdmf2 reader works until 10 elements are joined.<br>
<br>
To go further in this investigation, could someone point me to the source code of the Xdmf3 reader, specifically where the "joining"<br>
takes place?<br>
<br>
Cheers<br>
Fred<br>
<br>
<br>
2017-02-08 23:24 GMT+01:00 Frederic Perez <<a href="mailto:fredericperez1@gmail.com">fredericperez1@gmail.com</a>>:<br>
> I must have done something wrong in my previous attempt with Xdmf3,<br>
> because it no longer crashes. Note that it works even without your<br>
> suggestion, as the JOIN() syntax works.<br>
><br>
> Now the problem is that, when I click "Apply", I get the following error:<br>
> "Failed to locate selected scalars. Will use image scalars by default<br>
> No scalar values found for texture input!"<br>
><br>
> Note that the same exact file works with Xdmf instead of Xdmf3.<br>
><br>
> Fred<br>
><br>
><br>
> 2017-02-08 22:54 GMT+01:00 Burns, Andrew J CTR USARMY RDECOM ARL (US)<br>
> <<a href="mailto:andrew.j.burns35.ctr@mail.mil">andrew.j.burns35.ctr@mail.mil</a><wbr>>:<br>
>> I think that is because Xdmf3 uses different syntax for concatenation. Try using Function="$0|$1|$2|$3|$4|$5|$<wbr>6|$7|$8|$9" with the Xdmf3 reader.<br>
>><br>
>> -Andrew Burns<br>
>><br>
>> -----Original Message-----<br>
</span><span class="">>> From: Frederic Perez [Caution-mailto:<a href="mailto:fredericperez1@gmail.com">fredericperez1<wbr>@gmail.com</a>]<br>
>> Sent: Wednesday, February 08, 2017 4:50 PM<br>
>> To: Burns, Andrew J CTR USARMY RDECOM ARL (US)<br>
>> <<a href="mailto:andrew.j.burns35.ctr@mail.mil">andrew.j.burns35.ctr@mail.mil</a><wbr>><br>
>> Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
>> Subject: Re: [Non-DoD Source] [Paraview] XDMF makes paraview crash<br>
>> with JOIN<br>
>><br>
>> I tried both, but Xdmf3 makes ParaView crash even earlier (directly after opening the file) while Xdmf2 makes it crash upon "Apply".<br>
>><br>
>> Fred<br>
>><br>
>> 2017-02-08 22:28 GMT+01:00 Burns, Andrew J CTR USARMY RDECOM ARL (US)<br>
>> <<a href="mailto:andrew.j.burns35.ctr@mail.mil">andrew.j.burns35.ctr@mail.mil</a><wbr>>:<br>
>>> Are you using the Xdmf2 or Xdmf3 reader?<br>
>>><br>
>>> Andrew Burns<br>
>>> Software Engineer | Parsons<br>
>>> Phone: 410-306-0409<br>
>>> ARL DSRC<br>
>>> <a href="mailto:andrew.j.burns35.ctr@mail.mil">andrew.j.burns35.ctr@mail.mil</a><br>
>>><br>
>>> -----Original Message-----<br>
</span><div><div class="h5">>>> From: ParaView [Caution-mailto:<a href="mailto:paraview-bounces@paraview.org">paraview-<wbr>bounces@paraview.org</a>] On<br>
>>> Behalf Of Frederic Perez<br>
>>> Sent: Wednesday, February 08, 2017 3:39 PM<br>
>>> To: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
>>> Subject: [Non-DoD Source] [Paraview] XDMF makes paraview crash with<br>
>>> JOIN<br>
>>><br>
>>> All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> ----<br>
>>><br>
>>> Hi all,<br>
>>><br>
>>> I have successfully used the JOIN Function for the XDMF reader to concatenate the data from several HDF5 files.<br>
>>><br>
>>> <Xdmf Version="3.0"><br>
>>> <Domain><br>
>>> <Grid GridType="Uniform"><br>
>>> <Topology Name="Fields topology"<br>
>>> TopologyType="2DCoRectMesh" Dimensions="21 10"/><br>
>>> <Geometry Name="Fields geometry" GeometryType="ORIGIN_DXDY"><br>
>>> <DataItem Format="XML" NumberType="float"<br>
>>> Dimensions="2">0.0 0.0</DataItem><br>
>>> <DataItem Format="XML" NumberType="float"<br>
>>> Dimensions="2">0.3 0.06</DataItem><br>
>>> </Geometry><br>
>>> <Attribute Name="By" Center="Node" AttributeType="Scalar"><br>
>>> <DataItem ItemType="Function"<br>
>>> Function="JOIN($0,$1,$2,$3,$4,<wbr>$5,$6,$7,$8,$9)" Dimensions="21 10"><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000002/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000007/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000012/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000017/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000022/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000027/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000032/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000037/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000042/By</DataItem><br>
>>> <DataItem ItemType="Uniform" NumberType="Float"<br>
>>> Precision="8" Dimensions="21"<br>
>>> Format="HDF">mystuff.h5:/<wbr>0000000047/By</DataItem><br>
>>> </DataItem><br>
>>> </Attribute><br>
>>> </Grid><br>
>>> </Domain><br>
>>> </Xdmf><br>
>>><br>
>>> However, this technique only works when joining a maximum of 10 different pieces of data. If I add one DataItem in the JOIN Function, ParaView crashes upon clicking "Apply".<br>
>>><br>
>>> Is there a reason for this? Am I doing something wrong? Is there a workaround?<br>
>>><br>
>>> Cheers<br>
>>> Fred<br>
>>> ______________________________<wbr>_________________<br>
</div></div>>>> Powered by <a href="http://Caution-Caution-www.kitware.com" rel="noreferrer" target="_blank">Caution-Caution-www.kitware.<wbr>com</a><br>
<span class="">>>><br>
>>> Visit other Kitware open-source projects at<br>
</span>>>> Caution-Caution-<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.<wbr>kitware.com/opensource/<wbr>opensource.html</a><br>
<span class="">>>><br>
>>> Please keep messages on-topic and check the ParaView Wiki at:<br>
</span>>>> Caution-Caution-<a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://<wbr>paraview.org/Wiki/ParaView</a><br>
<span class="">>>><br>
>>> Search the list archives at:<br>
</span>>>> Caution-Caution-<a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://<wbr>markmail.org/search/?q=<wbr>ParaView</a><br>
<span class="">>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
</span>>>> Caution-Caution-<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.<wbr>kitware.com/mailman/listinfo/<wbr>paraview</a><br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Powered by <a href="http://Caution-www.kitware.com" rel="noreferrer" target="_blank">Caution-www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at Caution-<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.<wbr>com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: Caution-<a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/<wbr>Wiki/ParaView</a><br>
<br>
Search the list archives at: Caution-<a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/<wbr>search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
Caution-<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.<wbr>com/mailman/listinfo/paraview</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>