Skip to content

Numerical solution of the Laplace equation implementing the Jacobi method

Notifications You must be signed in to change notification settings

WalterNadalin/ParallelJacobi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numerial solution of the Laplace Equation by Jacobi method

Background

Please refer to background.


Parallelization

Please refer to parallelization.


Dependencies

Compilation


To compile it is possible to use the command

make [version]

where [version] can be either blank, mpi or openacc. This will produce the [version]multiplication.x executable (the name will depend on which version it has been compiled).

Execution


The program will initialize the data and run the simulation. To run it is possible to use

make [version]run [prc=%d] [dim=%d] [iters=%d]

where [version] as above, prc number of processes, dim dimension of the grid and iters iterations of the simulation. This will produce, if necessary, the [version]multiplication.x executable (the name will depend on how it has been compiled) and run it.

Test


To test it is possible to pass the debug=yes flag while making

make [version] debug=yes

and then run the [version]multiplication_debug.x executable using mpirun. It is also supported the command:

make [version]run debug=yes

which will compile (if necessary) and run immediately after.

Other


Use:

  • make plot to see the solution (that is what is obtained after the last iteration)

    Drawing
  • make clean and make flush to clean up

  • make gif [delay=%d] [frames=%d] to create GIF

    Drawing

About

Numerical solution of the Laplace equation implementing the Jacobi method

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages