The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.num-analysis

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: red-black gauss seidel iteration for 3d poisson equation
Replies: 1   Last Post: May 1, 2012 3:26 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 37
Registered: 12/13/04
red-black gauss seidel iteration for 3d poisson equation
Posted: Oct 21, 2010 12:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

using structured 3d mesh and standard 7-point stencil finite-difference discretization, do i really need 4 colors, which require 4 separate iterations for all nodes?

my understanding is that i only need 2 separate routines.

redblack = 0 for red, 1 for black
do k=1, nz
do j = 1, ny
do i = 1+mod(k+j+redblack,2), nx, 2
p[i,j,k] = ......

i want to make sure i understood this right. any comments?

thanks in advance.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.