diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshTools.C b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshTools.C index 1884485a69774f1916b80ee255f84dd440666999..59947b0fbe2528a6045ce36daf90570f8cdbbd55 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshTools.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshTools.C @@ -264,7 +264,7 @@ Foam::tmp<Foam::scalarField> Foam::polyMeshTools::volRatio scalar volOwn = vol[own[faceI]]; scalar volNei = vol[nei[faceI]]; - ratio[faceI] = min(volOwn,volNei)/(volOwn+volNei+VSMALL); + ratio[faceI] = min(volOwn,volNei)/(max(volOwn, volNei)+VSMALL); } @@ -286,7 +286,7 @@ Foam::tmp<Foam::scalarField> Foam::polyMeshTools::volRatio scalar volOwn = vol[own[faceI]]; scalar volNei = neiVol[bFaceI]; - ratio[faceI] = min(volOwn,volNei)/(volOwn+volNei+VSMALL); + ratio[faceI] = min(volOwn,volNei)/(max(volOwn, volNei)+VSMALL); } } }