CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Some help for Red black SOR with OpenMP

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2006, 09:26
Default Some help for Red black SOR with OpenMP
Posts: n/a
Hi everybody, I'm trying to parallelize ( with OpenMP ) a Numerical recipes routine. In fact, this is a Red black SOR algorithm.

But I don't know how to begin...

If somone could help me for this first experience...


PS: You can find the algorithm below


ph():represent the 3D quantity to solve

res(): is the source term

omeg : is the relaxation parameter

************************************************** *

kjsw=1 do ipass=1,2 isw=kjsw

do 14 k=2,n3x

do 14 j=2,n2y

do 13 i=isw+1,n1z,2





13 continue


14 continue


15 continue
  Reply With Quote

Old   February 5, 2006, 17:19
Default Re: Some help for Red black SOR with OpenMP
Posts: n/a
Parallelize the inner loop (there are no data dependencies as far as I can tell). The speed-up you will get will depend upon the size of the maximum index in the loop.

I forget the exact syntax but something like:


should be about right.
  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
what does the black mean? poiu FLUENT 5 September 6, 2009 09:24
About the OpenMP jinwon park Main CFD Forum 5 August 28, 2007 05:47
OpenMP and fortran John Deas Main CFD Forum 0 May 17, 2007 16:53
color contours with black line edges Anish FLUENT 2 March 28, 2007 01:02
CFX-Post: black and white legend/plots? Sjoerd Romkes CFX 0 March 8, 2002 11:20

All times are GMT -4. The time now is 03:29.