CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Choose paraview version by environment variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2010, 04:52
Default Choose paraview version by environment variable
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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:
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
bastil is offline   Reply With Quote

Old   January 21, 2010, 01:16
Default
  #2
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
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
Default
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19: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 03:16
environment variables version 3.2 F.K. Siemens 15 June 28, 2004 13:41


All times are GMT -4. The time now is 21:37.