Rationalized the indentation of C-preprocessor directives

This commit is contained in:
Henry Weller
2016-02-29 15:42:03 +00:00
parent 1277b4b8c4
commit 95d146ecdf
717 changed files with 1212 additions and 1214 deletions

View File

@ -563,8 +563,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "AMIInterpolation.C"
# include "AMIInterpolationParallelOps.C"
#include "AMIInterpolation.C"
#include "AMIInterpolationParallelOps.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -275,8 +275,8 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "AMIMethod.C"
# include "AMIMethodNew.C"
#include "AMIMethod.C"
#include "AMIMethodNew.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -145,7 +145,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "directAMI.C"
#include "directAMI.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -177,7 +177,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "faceAreaWeightAMI.C"
#include "faceAreaWeightAMI.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -149,7 +149,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "mapNearestAMI.C"
#include "mapNearestAMI.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -132,7 +132,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "partialFaceAreaWeightAMI.C"
#include "partialFaceAreaWeightAMI.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -231,7 +231,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "cyclicACMIPointPatchField.C"
#include "cyclicACMIPointPatchField.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -231,7 +231,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "cyclicAMIPointPatchField.C"
#include "cyclicAMIPointPatchField.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -359,7 +359,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "FaceCellWave.C"
#include "FaceCellWave.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -167,7 +167,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "MeshWave.C"
#include "MeshWave.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -358,7 +358,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "PatchEdgeFaceWave.C"
#include "PatchEdgeFaceWave.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -357,7 +357,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "PointEdgeWave.C"
#include "PointEdgeWave.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -162,7 +162,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "cellDistFuncsTemplates.C"
#include "cellDistFuncsTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -198,7 +198,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "patchDataWave.C"
#include "patchDataWave.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -208,7 +208,7 @@ inline bool contiguous<wallPointData<tensor>>()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "wallPointData.C"
#include "wallPointData.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -270,7 +270,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "treeDataPrimitivePatch.C"
#include "treeDataPrimitivePatch.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -345,7 +345,7 @@ namespace meshTools
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "meshToolsTemplates.C"
#include "meshToolsTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -123,7 +123,7 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
<< "Should be 1 or 2 - serious error "
<< "in mesh structure. " << endl;
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
forAll(curFaces, faceI)
{
Info<< "face: " << oldFaces[curFaces[faceI]]
@ -140,7 +140,7 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
<< "\" coordinates "
<< Points[cellPoints[cpI]] << endl;
}
# endif
#endif
// Gather the problem cell
problemCells.insert(cellI);
@ -152,7 +152,7 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
singleEdges.setSize(nSingleEdges);
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
Info<< "Cell " << cellI << endl;
forAll(curFaces, faceI)
@ -171,7 +171,7 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
<< "\" coordinates "
<< points()[cellPoints[cpI]] << endl;
}
# endif
#endif
// Loop through all single edges and mark the points they use
// points marked twice are internal to edge; those marked more than
@ -260,10 +260,10 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
pointChain.insert(newEdgeStart);
pointChain.append(newEdgeEnd);
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "found edge to start with: "
<< singleEdges[edgeI] << endl;
# endif
#endif
// Check if head or tail are blocked
forAll(cellPoints, pointI)
@ -272,9 +272,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
{
if (pointUsage[pointI] > 2)
{
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "start head blocked" << endl;
# endif
#endif
blockHead = true;
}
@ -283,9 +283,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
{
if (pointUsage[pointI] > 2)
{
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "start tail blocked" << endl;
# endif
#endif
blockTail = true;
}
@ -310,10 +310,10 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
label addEnd =
singleEdges[addEdgeI].end();
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "Trying candidate "
<< singleEdges[addEdgeI] << endl;
# endif
#endif
// Try to add the edge onto the head
if (!blockHead)
@ -356,10 +356,10 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
label curEdgeStart = pointChain.first();
label curEdgeEnd = pointChain.last();
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "curEdgeStart: " << curEdgeStart
<< " curEdgeEnd: " << curEdgeEnd << endl;
# endif
#endif
forAll(cellPoints, pointI)
{
@ -367,9 +367,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
{
if (pointUsage[pointI] > 2)
{
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "head blocked" << endl;
# endif
#endif
blockHead = true;
}
@ -378,9 +378,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
{
if (pointUsage[pointI] > 2)
{
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "tail blocked" << endl;
# endif
#endif
blockTail = true;
}
@ -390,9 +390,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
// Check if the loop is closed
if (curEdgeStart == curEdgeEnd)
{
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "closed loop" << endl;
# endif
#endif
pointChain.removeHead();
@ -402,10 +402,10 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
stopSearching = true;
}
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "current pointChain: " << pointChain
<< endl;
# endif
#endif
if (stopSearching) break;
}
@ -413,9 +413,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
} while (stopSearching);
}
# ifdef DEBUG_CHAIN
#ifdef DEBUG_CHAIN
Info<< "completed patch chain: " << pointChain << endl;
# endif
#endif
if (pointChain.size() > 2)
{
@ -426,9 +426,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
edgesToInsert.setSize(nEdgesToInsert);
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
Info<< "edgesToInsert: " << edgesToInsert << endl;
# endif
#endif
// Insert the edges into a list of faces
forAll(edgesToInsert, edgeToInsertI)
@ -477,10 +477,10 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
used[nextPoint] = true;
}
# ifdef DEBUG_ORDER
#ifdef DEBUG_ORDER
Info<< "unorderedEdge: " << unorderedEdge << nl
<< "orderedEdge: " << orderedEdge << endl;
# endif
#endif
// check for duplicate points in the ordered edge
forAll(orderedEdge, checkI)
@ -582,12 +582,12 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
allPointsPresent && curPointFound;
}
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
if (allPointsPresent)
{
Info<< "All points present" << endl;
}
# endif
#endif
if (!allPointsPresent)
{
@ -601,9 +601,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
// resized.
edgeList newFaceEdges = newFace.edges();
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
Info<< "Not all points present." << endl;
# endif
#endif
label nNewFacePoints = 0;
@ -670,11 +670,11 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
}
}
# ifdef DEBUG_ZIPUP
#ifdef DEBUG_ZIPUP
Info<< "oldFace: "
<< oldFaces[currentFaceIndex] << nl
<< "newFace: " << newFace << endl;
# endif
#endif
// Check for duplicate points in the new face
forAll(newFace, checkI)

View File

@ -294,7 +294,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "surfaceIntersectionTemplates.C"
#include "surfaceIntersectionTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -169,7 +169,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
# include "pointToPointPlanarInterpolationTemplates.C"
#include "pointToPointPlanarInterpolationTemplates.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //