Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
remisalmonPublic archive

About

Iterative solvers with MPI parallelization

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

MPI benchmark solver

C/MPI parallelization of the heat equation with source term:

du/dt - div(grad(u)) = f

with benchmark functions:

u(x,y) = cos(a*x)*sin(b*y), f = (a^2+b^2)*u (steady state equation = Poisson's equation, solved with Jacobi method)

or

u(x,y,t) = cos(a*x)*sin(b*y)*exp(-c*t), f = (a^2+b^2-c)*u (Heat equation, solved with Euler explicit method)

Run:

mpicc MPI_benchmark_solver.c -o MPI_benchmark_solver && mpirun -np N MPI_benchmark_solver

with N = 1+2\*R+2\*C, R = 1,2,..., C = 0,1,2,...

About

Iterative solvers with MPI parallelization

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages