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
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -141,7 +141,7 @@ void Foam::primitiveMesh::makeCellCentresAndVols
|
||||
|
||||
forAll(cellCtrs, celli)
|
||||
{
|
||||
if (cellVols[celli] > VSMALL)
|
||||
if (mag(cellVols[celli]) > VSMALL)
|
||||
{
|
||||
cellCtrs[celli] /= cellVols[celli];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user