Bugfix: Make the PV4FoamReader work properly with ParaView 4.3.1. This applies two fixes:

1- The patch provided in report #290 by Pascal Beckstein: https://sourceforge.net/p/openfoam-extend/ticketsfoamextendrelease/290/
 2- Removed the GUI plugin entry, as per intructions on the wiki page mentioned in the bug report.
This commit is contained in:
wyldckat 2016-06-05 20:40:37 +01:00 committed by Hrvoje Jasak
parent 4f1adadf23
commit f8bbe03a12
4 changed files with 13 additions and 16 deletions

View file

@ -45,11 +45,11 @@ ADD_PARAVIEW_PLUGIN(
) )
# Build the client-side plugin # Build the client-side plugin
ADD_PARAVIEW_PLUGIN( #ADD_PARAVIEW_PLUGIN(
PV4FoamReader # PV4FoamReader
"1.0" # "1.0"
GUI_RESOURCES PV4FoamReader.qrc # GUI_RESOURCES PV4FoamReader.qrc
) #)
TARGET_LINK_LIBRARIES( TARGET_LINK_LIBRARIES(
PV4FoamReader_SM PV4FoamReader_SM

View file

@ -1,5 +0,0 @@
<RCC>
<qresource prefix="/ParaViewResources" >
<file>PV4FoamReader.xml</file>
</qresource>
</RCC>

View file

@ -1,6 +0,0 @@
<ParaViewReaders>
<Reader name="PV4FoamReader"
extensions="OpenFOAM"
file_description="OpenFOAM Reader">
</Reader>
</ParaViewReaders>

View file

@ -4,6 +4,14 @@
name="PV4FoamReader" name="PV4FoamReader"
class="vtkPV4FoamReader"> class="vtkPV4FoamReader">
<!-- File extension section for paraview 4.3+ -->
<Hints>
<ReaderFactory
extensions="OpenFOAM"
file_description="OpenFOAM Reader" />
</Hints>
<!-- File name - compulsory --> <!-- File name - compulsory -->
<StringVectorProperty <StringVectorProperty
name="FileName" name="FileName"