Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
7c2cbbb2
Commit
7c2cbbb2
authored
Nov 24, 2008
by
mattijs
Browse files
parallel fix
parent
7c9f49b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine/ignition/ignitionSite.C
View file @
7c2cbbb2
...
...
@@ -37,14 +37,17 @@ namespace Foam
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_
);
if
(
ignCell
==
-
1
)
{
return
;
}
const
volVectorField
&
centres
=
mesh
.
C
();
const
scalarField
&
vols
=
mesh
.
V
();
scalar
radius
=
diameter_
/
2
.
0
;
cells_
.
setSize
(
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment