Basic HTML version of Foils prepared March 15 00

Foil 22 Multigrid Algorithm: procedure MG(level, A, u, f)

From Collection of Extra Foils for CPS615 PDE Iterative Solution Discussion CPS615 Spring Semester 00 -- March 00. by Geoffrey C. Fox


1 if level = coarsest then
  • solve coarsest grid equation by another method "exactly"
2 else
  • smooth Alevel u = f (m1 times)
  • Compute residual r = f - Alevel u
  • Restrict F = R r ( R is Restriction Operator)
  • Call MG( level + 1, A(level+1), V, F) (mc times)
  • Interpolate v = P V (Interpolate new solution at this level)
  • correct unew = u + v
  • smooth Aunew = f (m2 times) and
  • set u = unew
3 endif
4 endprocedure
5 Alevel uexact = f
6 uexact = u + v
7 Alevel v = r = f - Alevel u

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Mar 20 2000