ENH: primitiveMesh: correct cellCentre if neg vol
This commit is contained in:
parent
4f9fbd62da
commit
0421009856
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -141,7 +141,7 @@ void Foam::primitiveMesh::makeCellCentresAndVols
|
|||||||
|
|
||||||
forAll(cellCtrs, celli)
|
forAll(cellCtrs, celli)
|
||||||
{
|
{
|
||||||
if (cellVols[celli] > VSMALL)
|
if (mag(cellVols[celli]) > VSMALL)
|
||||||
{
|
{
|
||||||
cellCtrs[celli] /= cellVols[celli];
|
cellCtrs[celli] /= cellVols[celli];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user