Looping over all cells in parallel
Hi Foamers,
The following code works good on a single processor but not on multiple processors... forAll( mesh.C(), celli) { . . . } How can I make this work on multiple processors? Thanks Senthil |
Quote:
|
Quote:
|
Thanks for the response...Actually, I figured out what was missing...I had to use a "reduce" call to sum over all the processors and not just one processor. Like
reduce(U_flux, sumOp<scalar>()); Senthil |
Hello everyone.
I have a problem with forAll loop in parallel too. There is a piece of my code, and i don't know how to extend it for parallel calculations. It calculates mass flux deltaM through cell faces. Code:
|
All times are GMT -4. The time now is 13:50. |