PV3Reader is now working (tested with Paraview-3.8.0)
--HG-- branch : macMerge
This commit is contained in:
parent
9d39b30c49
commit
b02d2dcc98
3 changed files with 22 additions and 2 deletions
|
@ -3,6 +3,7 @@ EXE_INC = \
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(ParaView_DIR)/VTK \
|
-I$(ParaView_DIR)/VTK \
|
||||||
|
-I$(ParaView_DIR)/include/$(ParaView_MAJOR) \
|
||||||
-I$(ParaView_INST_DIR) \
|
-I$(ParaView_INST_DIR) \
|
||||||
-I$(ParaView_INST_DIR)/VTK \
|
-I$(ParaView_INST_DIR)/VTK \
|
||||||
-I$(ParaView_INST_DIR)/VTK/Common \
|
-I$(ParaView_INST_DIR)/VTK/Common \
|
||||||
|
|
|
@ -268,7 +268,7 @@ void Foam::vtkPV3Foam::convertMeshCellZones
|
||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
subsetMesh.setLargeCellSubset(zMesh[zoneId]);
|
subsetMesh.setLargeCellSubset(labelHashSet(zMesh[zoneId]));
|
||||||
|
|
||||||
vtkUnstructuredGrid* vtkmesh = volumeVTKMesh
|
vtkUnstructuredGrid* vtkmesh = volumeVTKMesh
|
||||||
(
|
(
|
||||||
|
|
|
@ -70,7 +70,7 @@ if [ "$PYTHONPATH" ]; then
|
||||||
else
|
else
|
||||||
export PYTHONPATH=$ParaView_DIR/Utilities/VTKPythonWrapping
|
export PYTHONPATH=$ParaView_DIR/Utilities/VTKPythonWrapping
|
||||||
fi
|
fi
|
||||||
if [ $WM_ARCH = "darwinPpc" -o $WM_ARCH = "darwinIntel" ]
|
if [ $WM_ARCH_BASE = "darwin" ]
|
||||||
then
|
then
|
||||||
export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/bin
|
export PYTHONPATH=$PYTHONPATH:$ParaView_DIR/bin
|
||||||
fi
|
fi
|
||||||
|
@ -79,6 +79,25 @@ if [ -r $ParaView_DIR ]
|
||||||
then
|
then
|
||||||
export PATH=$ParaView_DIR/bin:$PATH
|
export PATH=$ParaView_DIR/bin:$PATH
|
||||||
export PV_PLUGIN_PATH=$FOAM_LIBBIN
|
export PV_PLUGIN_PATH=$FOAM_LIBBIN
|
||||||
|
if [ "$WM_ARCH_BASE" == "darwin" ]
|
||||||
|
then
|
||||||
|
export PATH=$ParaView_DIR/bin/paraview.app/Contents/MacOS:$PATH
|
||||||
|
export DYLD_LIBRARY_PATH=$ParaView_DIR/bin:$DYLD_LIBRARY_PATH
|
||||||
|
export DYLD_LIBRARY_PATH=$ParaView_DIR/lib/$ParaView_MAJOR:$DYLD_LIBRARY_PATH
|
||||||
|
|
||||||
|
# Move plugins to a separate directory because paraview crashes
|
||||||
|
# when it tries to load one of the other libraries in $FOAM_LIBBIN as a plugin
|
||||||
|
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview
|
||||||
|
if [ ! -e $PV_PLUGIN_PATH ]
|
||||||
|
then
|
||||||
|
echo "Creating $PV_PLUGIN_PATH"
|
||||||
|
mkdir $PV_PLUGIN_PATH
|
||||||
|
fi
|
||||||
|
for i in $(find $FOAM_LIBBIN -depth 1 -name "libPV*")
|
||||||
|
do
|
||||||
|
ln -sf $i $PV_PLUGIN_PATH
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset cmake paraviewPython
|
unset cmake paraviewPython
|
||||||
|
|
Reference in a new issue