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

remisalmon/MPI_benchmark_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

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,...

Releases

No releases published

Packages

No packages published

Languages