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

How to handle the list in an openmp parallelism

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

LinkBack Thread Tools Display Modes
Old   January 25, 2008, 18:30
Default How to handle the list in an openmp parallelism
Posts: n/a
I met across a big problem in parallelizing my code. In my code, it needs to create a list to consider interactions between particles, see the following pseudo code. To parallelize the part of code, How can I avoid race conditions for k, f1,f2 in multi-thread calculations in the parallel loop?

Cheers, Gonski

Pseudo code to create neighbor list for particles


do i=1, n

Note: here many lines have been snipped


if(something )then

Note: here many lines have been snipped



Note: here many lines have been snipped




  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

All times are GMT -4. The time now is 00:22.