Skip to content

Implementation, Parallelisation and Evaluation of the finite difference method for solving the one dimensional wave equation

Notifications You must be signed in to change notification settings

anvitha-s/1d-wave-equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1d-wave-equation

Introduction

Implementation, Parallelisation and Evaluation of the finite difference method for solving the one dimensional wave equation. Evaluation is done in computing and comparing residuals and runtime analysis of serial and parallel implementations of code.

Instructions to run code

EXECUTING SERIAL CODES

g++ filname.cpp

A file "wave1.txt" is created in the same folder with the solution of the wave equation.

EXECUTING RESIDUAL

g++ filename.cpp

The file "wave1.txt" must be copied into the same folder as the residual file before executing this command.

EXECUTING MPI CODES

mpic++ filename.cpp 'mpirun -np 2 ./a.out'

Running with 2 mpi processes

EXECUTING OpenCL CODES

gcc -lOpenCL filename.c

About

Implementation, Parallelisation and Evaluation of the finite difference method for solving the one dimensional wave equation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published