Skip to content
Snippets Groups Projects
Commit 7c2cbbb2 authored by mattijs's avatar mattijs
Browse files

parallel fix

parent 7c9f49b9
No related branches found
No related tags found
No related merge requests found
...@@ -37,14 +37,17 @@ namespace Foam ...@@ -37,14 +37,17 @@ namespace Foam
void ignitionSite::findIgnitionCells(const fvMesh& mesh) void ignitionSite::findIgnitionCells(const fvMesh& mesh)
{ {
// Bit tricky: generate C and V before shortcutting if cannot find
// cell locally. mesh.C generation uses parallel communication.
const volVectorField& centres = mesh.C();
const scalarField& vols = mesh.V();
label ignCell = mesh.findCell(location_); label ignCell = mesh.findCell(location_);
if (ignCell == -1) if (ignCell == -1)
{ {
return; return;
} }
const volVectorField& centres = mesh.C();
const scalarField& vols = mesh.V();
scalar radius = diameter_/2.0; scalar radius = diameter_/2.0;
cells_.setSize(1); cells_.setSize(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment