CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Choose paraview version by environment variable

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 15, 2010, 04:52
Default Choose paraview version by environment variable
Senior Member
Join Date: Mar 2009
Posts: 502
Rep Power: 13
bastil is on a distinguished road
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
bastil is offline   Reply With Quote

Old   January 21, 2010, 01:16
Senior Member
Join Date: Jan 2010
Location: Australia
Posts: 123
Rep Power: 10
jiejie is on a distinguished road
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.
jiejie is offline   Reply With Quote

Old   January 27, 2010, 11:21
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Setting working environment variable Arthur FLUENT 0 December 10, 2008 05:33
hi how to set entironment variable in CFX pre romance CFX 0 December 23, 2007 08:11
Environment variable MPI_GROUP_MAX Satya Siemens 0 May 29, 2007 02:16
environment variables version 3.2 F.K. Siemens 15 June 28, 2004 12:41

All times are GMT -4. The time now is 03:31.