CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   how to disable paraview in ThirdParty (https://www.cfd-online.com/Forums/openfoam-installation/115193-how-disable-paraview-thirdparty.html)

phsieh2005 March 25, 2013 20:02

how to disable paraview in ThirdParty
 
Dear OpenFOAMers,

I would like to use paraview-3.98. I installed it from OpenSUSE.org website. I have not problem running paraview-3.98 when logged in as root. However, with the "source $HOME/OpenFOAM/OpenFOAM-2.2.x/etc/bashrc" in my user .bashrc, I got conflicts, hence, paraview-3.98 gave me errors.

If I do not source OpenFOAM-2.2.x/etc/bashrc, then, paraview-3.98 ran fine. Is there a good way to disable paraview in ThirdParty?

Thanks!

Pei-Ying

wyldckat March 27, 2013 16:58

Hi Pei-Ying,

There are at least two possibilities:
  • Comment out the respective line in OpenFOAM's etc/bashrc file: https://github.com/OpenFOAM/OpenFOAM...tc/bashrc#L214
    Something like this:
    Code:

    # _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh`
  • Or remove or move completely the built binaries:
    1. Check if it's there:
      Code:

      echo $ParaView_DIR
      ls -l $ParaView_DIR

    2. Move it or remove it:
      Code:

      mv $ParaView_DIR ${ParaView_DIR}_backup
      #or to remove it, uncomment the next line
      #rm -r $ParaView_DIR

You might also want to add an alias command to your "~/.bashrc" file:
Code:

alias paraFoam='paraFoam -builtin'
Best regards,
Bruno

phsieh2005 March 27, 2013 19:36

Hi, Bruno,

As usually, thanks a lot for your help! How can we do without you?!

Pei-Ying


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