Vim settings

Pathogen, NERDTree

http://chrisstrelioff.ws/sandbox/2014/05/29/install_and_setup_vim_on_ubuntu_14_04.html

Lightline

https://github.com/itchyny/lightline.vim

Jellybeans colorscheme

https://github.com/nanotech/jellybeans.vim

Advertisements

How to install ParaView 5.2 on Ubuntu 16.04

Install ParaView from Ubuntu repositories

Installing ParaView with the command

sudo apt-get install paraview

results in an earlier version (5.01.) of ParaView. You might want to upgrade to 5.2. but the Ubuntu repositories don’t have the latest version.

First remove the old version, then follow the instructions below:

sudo remove paraview

Install ParaView 5.2.

Install

To install the latest stable version we can use the binaries from the website. This will work for earlier Ubuntu versions and earlier versions of ParaView as well.

    1. Download the binaries from http://www.paraview.org. For me this results in: ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
    2. Extract and copy them:

      tar xzvf -C /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
      sudo gedit ~/.bashrc

    3. then insert the following line, save & close

      export PATH=$PATH:/opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/

From now you can run ParaView with /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview.

Create symbolic links

To be able to run ParaView with the command “paraview” in terminal, symbolic links should be created.

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview /usr/bin/paraview

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.2/ /usr/lib/paraview-5.2

Create launcher icon

Now ParaView can be run from terminal with the command “paraview” and it can be locked to the Launcher, but the icon is missing. To resolve the problem type in terminal

sudo gedit /usr/share/applications/paraview.desktop

then insert the following:

[Desktop Entry]
Version=1.0
Name=ParaView 5.2.

Exec=paraview
Terminal=false
Icon=/opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/share/icons/hicolor/96×96/apps/paraview.png
Type=Application
x-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=paraview
TargetEnvironment=Unity

save & quit & restart the computer.

After restart, paraview can be launched from the terminal and locked to the Launcher.

Vim keys

h   move one character left
j   move one row down
k   move one row up
l   move one character right
0   move to beginning of line
$   move to end of line
gg  move to first line
G   move to last line
Ctrl-D  move half-page down
Ctrl-U  move half-page up
Ctrl-B  page up
Ctrl-F  page down

Dolfin add superlu

Upgrade petsc

  1. find petsc folder: /usr/lib/petscdir
  2. download petsc somewhere from http://www.mcs.anl.gov/petsc/download/index.html with wget
  3. extract with tar xf
  4. the configure it: ./configure –prefix=/usr/lib/petscdir/3.6.3 –download-superlu_dist –with-cc=gcc –with-cxx=g++ –with-fc=gfortran –download-fblaslapack –download-mpich –download-parmetis –download-metis
  5. make all test
  6. and then change the environment variables as required

Add superlu to dolfin

http://fenicsproject.org/pipermail/fenics-support/2014-May/000588.html

  1. download fenics
  2. mkdir build
  3. cd build
  4. change Cmakelists.txt
  5. cmake –DCMAKE_INSTALL_PREFIX=~/software –download-suitesparse –download-superlu –download-superlu_dist ..

In case of warnings: “invalid suffix on literal”:
http://fenicsproject.org/pipermail/fenics-support/2014-December/001028.html

https://bitbucket.org/petsc/petsc4py/issues/24/installation-on-mac-os-x-yosemite

 

http://fenicsproject.org/qa/6195/newton-solver-hangs-indefinitely-when-using-more-number-cores