STYLE: use face_type instead of FaceType typedef

This commit is contained in:
Mark Olesen
2020-04-28 13:22:24 +02:00
parent 213d413464
commit cc7af66a15
15 changed files with 91 additions and 114 deletions

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -35,7 +36,7 @@ static void markPointNbrs
boolList& okToCollapse
)
{
const triSurface::FaceType& f = surf.localFaces()[facei];
const triSurface::face_type& f = surf.localFaces()[facei];
forAll(f, fp)
{
@ -109,7 +110,7 @@ label collapseEdge(triSurface& surf, const scalar minLen)
if (okToCollapse[facei])
{
// Check edge lengths.
const triSurface::FaceType& f = localFaces[facei];
const triSurface::face_type& f = localFaces[facei];
forAll(f, fp)
{

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -459,7 +459,7 @@ label sharedFace
const edge& e = surf.edges()[sharedEdgeI];
const triSurface::FaceType& f = surf.localFaces()[firstFacei];
const triSurface::face_type& f = surf.localFaces()[firstFacei];
label startIndex = f.find(e.start());
@ -611,13 +611,13 @@ void renumberFaces
const triSurface& surf,
const labelList& pointMap,
const Map<label>& faceToEdge,
List<triSurface::FaceType>& newTris
List<triSurface::face_type>& newTris
)
{
forAllConstIters(faceToEdge, iter)
{
const label facei = iter.key();
const triSurface::FaceType& f = surf.localFaces()[facei];
const triSurface::face_type& f = surf.localFaces()[facei];
forAll(f, fp)
{
@ -932,7 +932,7 @@ int main(int argc, char *argv[])
// Check if faces use unmoved points.
forAll(newTris, facei)
{
const triSurface::FaceType& f = newTris[facei];
const triSurface::face_type& f = newTris[facei];
forAll(f, fp)
{