CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   Choose paraview version by environment variable (

bastil January 15, 2010 04:52

Choose paraview version by environment variable
Dear all,

I use the pvFoam script to launch Paraview and the external parallel reader. This works find and has the advantage of being independent from OpenFOAM.
I want to update to Paraview 3.6.2 and there is no need to recompile paraFoam or anything else from the OF package. Now I want the user to have the choice of which pv to be used. This can be done by setting ParaView_VERSION.
However, etc/apps/paraview3/bashrc overwrites this setting:

export ParaView_VERSION=3.6.1
I propose to replace this line with:

: ${ParaView_VERSION:="3.6.1"}; export ParaView_VERSION
This makes it possible to choose paraview version by setting an environment variable before sourcing bashrc.

Regards BastiL

jiejie January 21, 2010 01:16

Hi Bastil

OpenFOAM comes with paraview 3.6.1 and I have downloaded the new paraview 3.6.2.

I have tried to modify the etc/apps/paraview3/bashrc with your suggestion and it still opens up with paraview 3.6.1 when I use "paraFoam"

Could you please explain a bit more about how to integrate the new paraview 3.6.2 with OpenFOAM 1.6?

Thanks a lot.

mattijs January 27, 2010 11:21

Thanks for the change. I've pushed something similar to 1.6.x. You now have


which default to paraview-3.6 and 3.6.1.

All times are GMT -4. The time now is 19:05.