项目作者: eugnsp

项目描述 :
Exercises in scientific computing
高级语言: C++
项目地址: git://github.com/eugnsp/sci_comp_exercises.git
创建时间: 2019-09-05T22:00:03Z
项目社区:https://github.com/eugnsp/sci_comp_exercises

开源协议:GNU General Public License v3.0

下载


Exercises in scientific computing

These are various exercises in scientific computing.

Contents

Sequential (seq)

  • basics
  • lin
    • laplace_2d_fdm
      • relaxation: Laplace BVP solution using finite-difference discretization and the Jacobi, the Gauss-Seidel, and the SOR iterative methods
    • poisson_2d_fem: Poisson BVP solution using mixed finite-element P0+P1 method
    • given_qr_factorization: QR factorization using Givens rotation
  • eigen
    • jacobi: Matrix diagonalization using the Jacobi eigenvalue algorithm
  • random
  • wavelet

MPI (mpi)

  • mat_mat_multiplication.cpp: Matrix-matrix multiplication

Results

Generated images can be found in the corresponding directories inside the figs directory. Video animations can be found on the following YouTube channel.

How to build

Set MKLROOT environment variable to point to the MKL installation directory,
and be sure that your CMake version is >= 3.13. Then:

  1. git clone --recursive https://github.com/eugnsp/sci_comp_exercises.git
  2. cd sci_comp_exercises
  3. mkdir build && cd build
  4. cmake -DCMAKE_BUILD_TYPE=RELEASE .. && make

C++17/C++20 compiler is required. Tested with GCC 8.3.0.

External dependencies

License

This code is distributed under GNU General Public License v3.0.