CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Choose paraview version by environment variable (http://www.cfd-online.com/Forums/openfoam-bugs/71800-choose-paraview-version-environment-variable.html)

bastil January 15, 2010 03: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:
Code:

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

: ${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 00: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 10:21

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

ParaView_MAJOR
ParaView_VERSION

which default to paraview-3.6 and 3.6.1.


All times are GMT -4. The time now is 12:53.