A personal repository to store reduced basis codes on RBniCS.
- Install FEniCS on Ubuntu via Ubuntu Personal Package Archives (PPA)
sudo apt-get install --no-install-recommends software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install --no-install-recommends fenics
- Prerequisites
sudo apt-get install valgrind
sudo apt-get install gfortran
sudo apt-get install python3-distutils
- Download PETSc and SLEPc (should be in /home/USER/Downloads)
- Install petsc-3.14.1 locally on a user-defined folder
mkdir /home/USER/Packages
cd Packages
tar -xzf /home/USER/Downloads/petsc-3.14.1.tar.gz
cd petsc-3.14.1
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack
make all check
- Install slepc-3.14.0 locally on a user-defined folder
cd /home/USER/Packages
tar -xzf /home/USER/Downloads/slepc-3.14.0.tar.gz
cd slepc-3.14.0
export PETSC_DIR=/home/USER/Packages/petsc-3.14.1
export PETSC_ARCH=arch-linux2-gnu-c-debug
./configure
make all check
- Install mpi and pip3
sudo apt install mpi
sudo apt install python3-pip
- Install petsc4py and slepc4py
pip3 install petsc4py
pip3 install slepc4py
- Install RBniCS
- Go back to Packages directory
git clone https://github.com/RBniCS/RBniCS.git
cd RBniCS
sudo python3 setup.py install