|July 7, 2012, 12:56||
Loop over cells per processor (parallel)
Join Date: May 2012
Posts: 5Rep Power: 6
Hi I got a problem and I have read a lot of posts on a different forums but still could not find a solution. I am doing something wrong. Could some one help me out.
Basically when I run my program on single processor it works fine but when on parallel it does not.
I am using the loop
x = mesh.C()[celli].component(0);
y = mesh.C()[celli].component(1);
z = mesh.C()[celli].component(2);
arr = getnewvelocity(rho, U[celli].x(), U[celli].y(), U[celli].z(), p[celli]);
I found a post on this forum suggesting to use "reduce" command but it means that I send all data from all proc to one. I dont want this. I wan to go through all cells per processor.
Could some one give me an advise or example.
|July 7, 2012, 18:32||
Join Date: Mar 2009
Posts: 3,953Rep Power: 41
Whether you want to do a reduce or not is irrelevant: it depends on what is happening in the location where you put the 7 points. May be that you don't need a reduce. May be that you need it after the loop.
|Thread||Thread Starter||Forum||Replies||Last Post|
|No layers in a small gap||bobburnquist||OpenFOAM Native Meshers: snappyHexMesh and Others||6||August 26, 2015 09:38|
|Import netgen mesh to OpenFOAM||hsieh||Open Source Meshers: Gmsh, Netgen, CGNS, ...||32||September 13, 2011 05:50|
|snappyHexMesh aborting||Tobi||OpenFOAM Native Meshers: snappyHexMesh and Others||0||November 10, 2010 04:23|
|NACA0012 geometry/design software needed||Franny||Main CFD Forum||13||July 7, 2007 15:57|
|physical boundary error!!||kris||CD-adapco||2||August 3, 2005 00:32|