Big Chemical Encyclopedia

Chemical substances, components, reactions, process design ...

Articles Figures Tables About

Some Advice on Writing Multigrid Solvers

One key recommendation for writing MG codes is to make the code as modular as possible, with separate routines for each operation. Once relaxation, restriction, defect correction, and interpolation codes are developed, these can be used repeatedly for a wide range of problems. Also, preplanning and organization before starting to write the code can save a great deal of time and effort. [Pg.253]

A next stage might be to adapt the Poisson code to run on a parallel cluster using Message Passing Interface (MPI) coding. A first step here is to partition the fine-scale domain into subdomains the communication between the subdomains is limited to the boundary areas. If higher order Laplacians are used, however, the communication overhead increases. [Pg.254]

One issue encountered repeatedly by the author is the treatment of boimd-aries. On several occasions, the solver apparently worked, but then stalled at some finite residual. Almost invariably, that stalling was traced back to a sHght error on the boundaries in one of the routines (restriction, interpolation, relaxation, etc). So a word of warning is If the solver stalls before complete convergence, look first at the boundaries and how they have been handled in the code  [Pg.254]

The author has found several basic sources to be instructive, especially in the early stages of learning about multigrid techniques. This is strictly a personal bias, but the book by Briggs, Henson, and MeCormick and the early review studies by Brandt have been particularly helpful and are recommended. They lay out both the theory and applications in clear language and are less mathematically oriented than some other multigrid sources. [Pg.254]


See other pages where Some Advice on Writing Multigrid Solvers is mentioned: [Pg.253]    [Pg.253]   


SEARCH



Advice

Multigrid

Multigrid solvers

Multigriding

Solver

© 2024 chempedia.info