[Paraview] xdmf2 vs xdmf3 file type

David E DeMarle dave.demarle at kitware.com
Tue Apr 25 09:21:16 EDT 2017


This should do it.
diff --git
a/ParaViewCore/ServerManager/SMApplication/Resources/proxies_xdmf3.xml
b/ParaViewCore/ServerManager/SMApplication/Resources/proxies_xdmf3.xml
index 46bf7fb..9236ebd 100644
--- a/ParaViewCore/ServerManager/SMApplication/Resources/proxies_xdmf3.xml
+++ b/ParaViewCore/ServerManager/SMApplication/Resources/proxies_xdmf3.xml
@@ -95,7 +95,7 @@
       </StringVectorProperty>

       <Hints>
-        <ReaderFactory extensions="xmf xdmf"
+        <ReaderFactory extensions="xmf xdmf xmf3"
                        file_description="Xdmf3 Reader" />
       </Hints>
       <!-- End of Xdmf3Reader -->
@@ -128,7 +128,7 @@ type, otherwise it's a vtkMultiBlockDataSet.
       </IntVectorProperty>

       <Hints>
-        <ReaderFactory extensions="xmf xdmf"
+        <ReaderFactory extensions="xmf xdmf xmf3"
                        file_description="Xdmf3 Reader" />
       </Hints>
       <!-- End of Xdmf3ReaderT -->
@@ -158,7 +158,7 @@ type, otherwise it's a vtkMultiBlockDataSet.
       </IntVectorProperty>

       <Hints>
-        <ReaderFactory extensions="xmf xdmf"
+        <ReaderFactory extensions="xmf xdmf xmf3"
                        file_description="Xdmf3 Reader (Top Level
Partition)" />
       </Hints>
       <!-- End of Xdmf3ReaderS -->
diff --git a/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
b/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
index 0eb9ec0..22e0dc5 100644
--- a/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
+++ b/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml
@@ -5550,7 +5550,7 @@
         <Documentation>Available timestep values.</Documentation>
       </DoubleVectorProperty>
       <Hints>
-        <ReaderFactory extensions="xmf xdmf"
+        <ReaderFactory extensions="xmf xdmf xmf2"
                        file_description="Xdmf Reader" />
       </Hints>
       <!-- End of XdmfReader -->


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

On Tue, Apr 25, 2017 at 7:17 AM, Nico Schlömer <nico.schloemer at gmail.com>
wrote:

> > If one had something like xmf2 and the other xmf3 it would do what you
> are asking for.
> > You could do that if you build from source for example.
>
> I don't have a problem with that. What do I need to patch?
>
> Cheers,
> Nico
>
>
> On Mon, Apr 24, 2017 at 11:07 PM David E DeMarle <dave.demarle at kitware.com>
> wrote:
>
>> They both claim ".xmf" and ".xdmf" via the ReaderFactor extensions line
>> you will find in readers.xml and proxies_xdmf3.xml. If one had something
>> like xmf2 and the other xmf3 it would do what you are asking for. You could
>> do that if you build from source for example.
>>
>> If not you should be able to force something like that by making a dummy
>> reader xml only plugin just to get the file extension association. See
>> http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_a_Reader for
>> hints.
>>
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Mon, Apr 24, 2017 at 4:58 PM, Nico Schlömer <nico.schloemer at gmail.com>
>> wrote:
>>
>>> Hi everyone,
>>>
>>> I have a simulation code that spits out XDMF2 data (something.xdmf), and
>>> I can visualize that with ParaView by opening the file, then selecting XDMF
>>> over XDMF3 in a menu.
>>> Since I have to repeat this process often, I'm asking myself if there's
>>> a specific XDMF2 (or XDMF3) file extension that would allow me to skip the
>>> dialog.
>>>
>>> Any hints?
>>>
>>> Cheers,
>>> Nico
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170425/8215bbb2/attachment.html>


More information about the ParaView mailing list