Skip to content

A personal repository to store reduced basis codes on RBniCS

License

Notifications You must be signed in to change notification settings

minhtriet95/RBniCS-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RBniCS-examples

A personal repository to store reduced basis codes on RBniCS.

🛠️ Installation

  1. 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
  1. Install PETSc and SLEPc
  • 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
  1. Install mpi and pip3
sudo apt install mpi
sudo apt install python3-pip
  1. Install petsc4py and slepc4py
pip3 install petsc4py
pip3 install slepc4py
  1. Install RBniCS
  • Go back to Packages directory
git clone https://github.com/RBniCS/RBniCS.git
cd RBniCS
sudo python3 setup.py install

About

A personal repository to store reduced basis codes on RBniCS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published