Code style: Updated line comments to start with a space

//This is a comment   ->   // This is a comment
This commit is contained in:
Henry Weller
2018-05-01 11:57:50 +01:00
parent 9ffc025b08
commit 87e32ab499
476 changed files with 2009 additions and 1967 deletions

View File

@ -343,7 +343,7 @@ bool Foam::checkCoupledPoints
const polyBoundaryMesh& patches = mesh.boundaryMesh();
// Zero'th point on coupled faces
//pointField nbrZeroPoint(fcs.size()-mesh.nInternalFaces(), vector::max);
// pointField nbrZeroPoint(fcs.size()-mesh.nInternalFaces(), vector::max);
List<pointField> nbrPoints(fcs.size() - mesh.nInternalFaces());
// Exchange zero point
@ -395,7 +395,7 @@ bool Foam::checkCoupledPoints
(
cpp.calcFaceTol
(
//cpp.matchTolerance(),
// cpp.matchTolerance(),
cpp,
cpp.points(),
cpp.faceCentres()
@ -869,7 +869,7 @@ Foam::label Foam::checkGeometry
pointSet points(mesh, "shortEdges", mesh.nPoints()/1000 + 1);
if (mesh.checkEdgeLength(true, minDistSqr, &points))
{
//noFailedChecks++;
// noFailedChecks++;
label nPoints = returnReduce(points.size(), sumOp<label>());
@ -891,7 +891,7 @@ Foam::label Foam::checkGeometry
if (mesh.checkPointNearness(false, minDistSqr, &points))
{
//noFailedChecks++;
// noFailedChecks++;
label nPoints = returnReduce(points.size(), sumOp<label>());
@ -916,7 +916,7 @@ Foam::label Foam::checkGeometry
faceSet faces(mesh, "concaveFaces", mesh.nFaces()/100 + 1);
if (mesh.checkFaceAngles(true, 10, &faces))
{
//noFailedChecks++;
// noFailedChecks++;
label nFaces = returnReduce(faces.size(), sumOp<label>());
@ -940,7 +940,7 @@ Foam::label Foam::checkGeometry
faceSet faces(mesh, "warpedFaces", mesh.nFaces()/100 + 1);
if (mesh.checkFaceFlatness(true, 0.8, &faces))
{
//noFailedChecks++;
// noFailedChecks++;
label nFaces = returnReduce(faces.size(), sumOp<label>());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -478,7 +478,7 @@ void Foam::mergeAndWrite
mkDir(outputDir);
fileName outputFile(outputDir/writer.getFileName(points, wordList()));
//fileName outputFile(outputDir/set.name());
// fileName outputFile(outputDir/set.name());
OFstream os(outputFile);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -588,7 +588,7 @@ Foam::label Foam::checkTopology
points.write();
}
//Info.setf(ios_base::right);
// Info.setf(ios_base::right);
}
// Force creation of all addressing if requested.

View File

@ -661,7 +661,7 @@ int main(int argc, char *argv[])
// Pass 1: add patches
// ~~~~~~~~~~~~~~~~~~~
//HashSet<word> addedPatches;
// HashSet<word> addedPatches;
{
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
forAll(selectors, selectorI)
@ -685,7 +685,7 @@ int main(int argc, char *argv[])
// Note: do not set coupleGroup if constructed from
// baffles so you have freedom specifying it
// yourself.
//patchDict.set("coupleGroup", groupName);
// patchDict.set("coupleGroup", groupName);
addPatch(mesh, patchName, groupName, patchDict);
}

View File

@ -62,7 +62,7 @@ baffles
surface triSurfaceMesh;
name baffle1D.stl;
//- Optional flip
//flip false;
// flip false;
// Generate patchGroup baffle1 with two patches:

View File

@ -461,7 +461,7 @@ void syncPoints
//- Note: hasTransformation is only used for warning messages so
// reduction not strictly necessary.
//reduce(hasTransformation, orOp<bool>());
// reduce(hasTransformation, orOp<bool>());
// Synchronize multiple shared points.
const globalMeshData& pd = mesh.globalData();

View File

@ -70,7 +70,7 @@ patches
// Optional non-default tolerance to be able to define cyclics
// on bad meshes
//matchTolerance 1E-2;
// matchTolerance 1E-2;
}
// How to construct: either from 'patches' or 'set'

View File

@ -92,33 +92,33 @@ int main(int argc, char *argv[])
mapPolyMesh map
(
mesh,
mesh.nPoints(), //nOldPoints,
mesh.nFaces(), //nOldFaces,
mesh.nCells(), //nOldCells,
mesh.pointMap(), //pointMap,
mesh.nPoints(), // nOldPoints,
mesh.nFaces(), // nOldFaces,
mesh.nCells(), // nOldCells,
mesh.pointMap(), // pointMap,
List<objectMap>(0), // pointsFromPoints,
labelList(0), //faceMap,
List<objectMap>(0), //facesFromPoints,
List<objectMap>(0), //facesFromEdges,
List<objectMap>(0), //facesFromFaces,
mesh.cellMap(), //cellMap,
List<objectMap>(0), //cellsFromPoints,
List<objectMap>(0), //cellsFromEdges,
List<objectMap>(0), //cellsFromFaces,
List<objectMap>(0), //cellsFromCells,
labelList(0), //reversePointMap,
labelList(0), //reverseFaceMap,
labelList(0), //reverseCellMap,
labelHashSet(0), //flipFaceFlux,
labelListList(0), //patchPointMap,
labelListList(0), //pointZoneMap,
labelListList(0), //faceZonePointMap,
labelListList(0), //faceZoneFaceMap,
labelListList(0), //cellZoneMap,
pointField(0), //preMotionPoints,
labelList(0), //oldPatchStarts,
labelList(0), //oldPatchNMeshPoints,
autoPtr<scalarField>() //oldCellVolumesPtr
labelList(0), // faceMap,
List<objectMap>(0), // facesFromPoints,
List<objectMap>(0), // facesFromEdges,
List<objectMap>(0), // facesFromFaces,
mesh.cellMap(), // cellMap,
List<objectMap>(0), // cellsFromPoints,
List<objectMap>(0), // cellsFromEdges,
List<objectMap>(0), // cellsFromFaces,
List<objectMap>(0), // cellsFromCells,
labelList(0), // reversePointMap,
labelList(0), // reverseFaceMap,
labelList(0), // reverseCellMap,
labelHashSet(0), // flipFaceFlux,
labelListList(0), // patchPointMap,
labelListList(0), // pointZoneMap,
labelListList(0), // faceZonePointMap,
labelListList(0), // faceZoneFaceMap,
labelListList(0), // cellZoneMap,
pointField(0), // preMotionPoints,
labelList(0), // oldPatchStarts,
labelList(0), // oldPatchNMeshPoints,
autoPtr<scalarField>() // oldCellVolumesPtr
);
refData.updateMesh(map);
refData.write();

View File

@ -270,10 +270,10 @@ Foam::label Foam::meshDualiser::addInternalFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated internal dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated internal dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -297,10 +297,10 @@ Foam::label Foam::meshDualiser::addInternalFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated internal dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated internal dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -354,10 +354,10 @@ Foam::label Foam::meshDualiser::addBoundaryFace
zoneFlip // zoneFlip
);
//pointField dualPoints(meshMod.points());
//vector n(newFace.normal(dualPoints));
//n /= mag(n);
//Pout<< "Generated boundary dualFace:" << dualFacei
// pointField dualPoints(meshMod.points());
// vector n(newFace.normal(dualPoints));
// n /= mag(n);
// Pout<< "Generated boundary dualFace:" << dualFacei
// << " verts:" << newFace
// << " points:" << UIndirectList<point>(meshMod.points(), newFace)()
// << " n:" << n
@ -404,7 +404,7 @@ void Foam::meshDualiser::createFacesAroundEdge
bool edgeOrder = ie.sameOrder(e[0], e[1]);
label startFaceLabel = ie.faceLabel();
//Pout<< "At edge:" << edgeI << " verts:" << e
// Pout<< "At edge:" << edgeI << " verts:" << e
// << " points:" << mesh_.points()[e[0]] << mesh_.points()[e[1]]
// << " started walking at face:" << ie.faceLabel()
// << " verts:" << mesh_.faces()[ie.faceLabel()]
@ -552,7 +552,7 @@ void Foam::meshDualiser::createFaceFromInternalFace
label own = mesh_.faceOwner()[facei];
label nei = mesh_.faceNeighbour()[facei];
//Pout<< "createFaceFromInternalFace : At face:" << facei
// Pout<< "createFaceFromInternalFace : At face:" << facei
// << " verts:" << f
// << " points:" << UIndirectList<point>(mesh_.points(), f)()
// << " started walking at edge:" << fEdges[fp]
@ -735,13 +735,13 @@ void Foam::meshDualiser::createFacesAroundBoundaryPoint
label dualCelli = findDualCell(own[facei], pointi);
//Bit dodgy: create dualface from the last face (instead of from
// Bit dodgy: create dualface from the last face (instead of from
// the central point). This will also use the original faceZone to
// put the new face (which might span multiple original faces) in.
addBoundaryFace
(
//pointi, // masterPointi
// pointi, // masterPointi
-1, // masterPointi
-1, // masterEdgeI
facei, // masterFacei
@ -1030,11 +1030,11 @@ void Foam::meshDualiser::setRefinement
pointToDualCells_[pointi].setSize(1);
pointToDualCells_[pointi][0] = meshMod.addCell
(
pointi, //masterPointID,
-1, //masterEdgeID,
-1, //masterFaceID,
-1, //masterCellID,
-1 //zoneID
pointi, // masterPointID,
-1, // masterEdgeID,
-1, // masterFaceID,
-1, // masterCellID,
-1 // zoneID
);
if (dualCcStr.valid())
{
@ -1074,11 +1074,11 @@ void Foam::meshDualiser::setRefinement
{
pointToDualCells_[pointi][pCelli] = meshMod.addCell
(
pointi, //masterPointID
-1, //masterEdgeID
-1, //masterFaceID
-1, //masterCellID
mesh_.cellZones().whichZone(pCells[pCelli]) //zoneID
pointi, // masterPointID
-1, // masterEdgeID
-1, // masterFaceID
-1, // masterCellID
mesh_.cellZones().whichZone(pCells[pCelli]) // zoneID
);
if (dualCcStr.valid())
{
@ -1098,11 +1098,11 @@ void Foam::meshDualiser::setRefinement
pointToDualCells_[pointi].setSize(1);
pointToDualCells_[pointi][0] = meshMod.addCell
(
pointi, //masterPointID,
-1, //masterEdgeID,
-1, //masterFaceID,
-1, //masterCellID,
-1 //zoneID
pointi, // masterPointID,
-1, // masterEdgeID,
-1, // masterFaceID,
-1, // masterCellID,
-1 // zoneID
);
if (dualCcStr.valid())
@ -1301,7 +1301,7 @@ void Foam::meshDualiser::setRefinement
label startFacei = eFaces[i];
//Pout<< "Walking edge:" << edgeI
// Pout<< "Walking edge:" << edgeI
// << " points:" << mesh_.points()[e[0]]
// << mesh_.points()[e[1]]
// << " startFace:" << startFacei
@ -1409,7 +1409,7 @@ void Foam::meshDualiser::setRefinement
// Starting face
label startFacei = pp.start()+pFaces[i];
//Pout<< "Walking around point:" << pointi
// Pout<< "Walking around point:" << pointi
// << " coord:" << mesh_.points()[pointi]
// << " on patch:" << patchi
// << " startFace:" << startFacei

View File

@ -156,7 +156,7 @@ void simpleMarkFeatures
{
const edge& e = allBoundary.edges()[edgeI];
//Info<< "Detected non-manifold boundary edge:" << edgeI
// Info<< "Detected non-manifold boundary edge:" << edgeI
// << " coords:"
// << allBoundary.points()[meshPoints[e[0]]]
// << allBoundary.points()[meshPoints[e[1]]] << endl;

View File

@ -93,8 +93,8 @@ springCoeffs
blockCoeffs
{
method scotch;
//method hierarchical;
//hierarchicalCoeffs
// method hierarchical;
// hierarchicalCoeffs
//{
// n (1 2 1);
// delta 0.001;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -105,7 +105,7 @@ int main(int argc, char *argv[])
IOobjectList pointObjects(objects.lookupClass(pointSet::typeName));
//Pout<< "pointSets:" << pointObjects.names() << endl;
// Pout<< "pointSets:" << pointObjects.names() << endl;
forAllConstIter(IOobjectList, pointObjects, iter)
{
@ -124,10 +124,10 @@ int main(int argc, char *argv[])
sz,
new pointZone
(
set.name(), //name
pointLabels, //addressing
sz, //index
mesh.pointZones() //pointZoneMesh
set.name(), // name
pointLabels, // addressing
sz, // index
mesh.pointZones() // pointZoneMesh
)
);
mesh.pointZones().writeOpt() = IOobject::AUTO_WRITE;
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
HashSet<word> slaveCellSets;
//Pout<< "faceSets:" << faceObjects.names() << endl;
// Pout<< "faceSets:" << faceObjects.names() << endl;
forAllConstIter(IOobjectList, faceObjects, iter)
{
@ -255,11 +255,11 @@ int main(int argc, char *argv[])
sz,
new faceZone
(
set.name(), //name
addressing.shrink(), //addressing
flipMap.shrink(), //flipmap
sz, //index
mesh.faceZones() //pointZoneMesh
set.name(), // name
addressing.shrink(), // addressing
flipMap.shrink(), // flipmap
sz, // index
mesh.faceZones() // pointZoneMesh
)
);
mesh.faceZones().writeOpt() = IOobject::AUTO_WRITE;
@ -283,7 +283,7 @@ int main(int argc, char *argv[])
IOobjectList cellObjects(objects.lookupClass(cellSet::typeName));
//Pout<< "cellSets:" << cellObjects.names() << endl;
// Pout<< "cellSets:" << cellObjects.names() << endl;
forAllConstIter(IOobjectList, cellObjects, iter)
{
@ -304,10 +304,10 @@ int main(int argc, char *argv[])
sz,
new cellZone
(
set.name(), //name
cellLabels, //addressing
sz, //index
mesh.cellZones() //pointZoneMesh
set.name(), // name
cellLabels, // addressing
sz, // index
mesh.cellZones() // pointZoneMesh
)
);
mesh.cellZones().writeOpt() = IOobject::AUTO_WRITE;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -365,7 +365,7 @@ void Foam::regionSide::walkAllPointConnectedFaces
visitedPoint.insert(e.start());
//edgeI = otherEdge(mesh, otherFacei, edgeI, e.start());
// edgeI = otherEdge(mesh, otherFacei, edgeI, e.start());
walkPointConnectedFaces
(
@ -384,7 +384,7 @@ void Foam::regionSide::walkAllPointConnectedFaces
visitedPoint.insert(e.end());
//edgeI = otherEdge(mesh, otherFacei, edgeI, e.end());
// edgeI = otherEdge(mesh, otherFacei, edgeI, e.end());
walkPointConnectedFaces
(

View File

@ -631,7 +631,7 @@ autoPtr<mapPolyMesh> createRegionMesh
);
if (!io.typeHeaderOk<IOdictionary>(true))
//if (!exists(io.objectPath()))
// if (!exists(io.objectPath()))
{
Info<< "Writing dummy " << regionName/io.name() << endl;
dictionary dummyDict;
@ -926,7 +926,7 @@ void createAndWriteRegion
}
}
//reorderPatches(newMesh(), oldToNew, nNewPatches);
// reorderPatches(newMesh(), oldToNew, nNewPatches);
fvMeshTools::reorderPatches(newMesh(), oldToNew, nNewPatches, true);
// Rename shared patches with region name
@ -1075,7 +1075,7 @@ labelList addRegionPatches
const edge& e = interfaces[interI];
const Pair<word>& names = interfaceNames[interI];
//Info<< "For interface " << interI
// Info<< "For interface " << interI
// << " between regions " << e
// << " trying to add patches " << names << endl;
@ -1097,9 +1097,9 @@ labelList addRegionPatches
(
mesh,
patch1,
dictionary(), //optional per field value
dictionary(), // optional per field value
calculatedFvPatchField<scalar>::typeName,
true //validBoundary
true // validBoundary
);
mappedWallPolyPatch patch2
@ -1118,9 +1118,9 @@ labelList addRegionPatches
(
mesh,
patch2,
dictionary(), //optional per field value
dictionary(), // optional per field value
calculatedFvPatchField<scalar>::typeName,
true //validBoundary
true // validBoundary
);
Info<< "For interface between region " << regionNames[e[0]]
@ -1920,10 +1920,10 @@ int main(int argc, char *argv[])
zoneI,
new cellZone
(
zoneName, //name
regionCells, //addressing
zoneI, //index
cellZones //cellZoneMesh
zoneName, // name
regionCells, // addressing
zoneI, // index
cellZones // cellZoneMesh
)
);
}

View File

@ -446,15 +446,15 @@ int main(int argc, char *argv[])
ReadFields(mesh, objects, volTensorFields);
//- Uncomment if you want to interpolate surface fields (usually bad idea)
//Info<< "Reading all current surfaceFields" << endl;
//PtrList<surfaceScalarField> surfaceScalarFields;
//ReadFields(mesh, objects, surfaceScalarFields);
// Info<< "Reading all current surfaceFields" << endl;
// PtrList<surfaceScalarField> surfaceScalarFields;
// ReadFields(mesh, objects, surfaceScalarFields);
//
//PtrList<surfaceVectorField> surfaceVectorFields;
//ReadFields(mesh, objects, surfaceVectorFields);
// PtrList<surfaceVectorField> surfaceVectorFields;
// ReadFields(mesh, objects, surfaceVectorFields);
//
//PtrList<surfaceTensorField> surfaceTensorFields;
//ReadFields(mesh, objects, surfaceTensorFields);
// PtrList<surfaceTensorField> surfaceTensorFields;
// ReadFields(mesh, objects, surfaceTensorFields);
if (!overwrite)
{

View File

@ -73,10 +73,10 @@ FoamFile
// {
// set f0; // Name of faceSet
//
// //option neighbour; // cell with neighbour in faceSet
// //option owner; // ,, owner
// // option neighbour; // cell with neighbour in faceSet
// // option owner; // ,, owner
// option any; // cell with any face in faceSet
// //option all; // cell with all faces in faceSet
// // option all; // cell with all faces in faceSet
// }
//
// // Select based on pointSet
@ -85,7 +85,7 @@ FoamFile
// {
// set p0;
// option any; // cell with any point in pointSet
// //option edge; // cell with an edge with both points in pointSet
// // option edge; // cell with an edge with both points in pointSet
// }
//
// // Select based on cellShape
@ -100,7 +100,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Cells with cell centre within box
@ -203,7 +203,7 @@ FoamFile
// {
// set c0;
// option all; // All faces of cells
// //option both; // Only faces whose owner&neighbour are in cellSet
// // option both; // Only faces whose owner&neighbour are in cellSet
// }
//
// // Select based on pointSet
@ -212,8 +212,8 @@ FoamFile
// {
// set p0;
// option any; // Faces using any point in pointSet
// //option all // Faces with all points in pointSet
// //option edge // Faces with two consecutive points in pointSet
// // option all // Faces with all points in pointSet
// // option edge // Faces with two consecutive points in pointSet
// }
//
// // Select by explicitly providing face labels
@ -249,7 +249,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Faces with normal to within certain angle aligned with vector.
@ -322,7 +322,7 @@ FoamFile
// sourceInfo
// {
// box (0 0 0) (1 1 1);
// //boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// // boxes ((0 0 0) (1 1 1) (10 10 10)(11 11 11));
// }
//
// // Select based on surface
@ -390,7 +390,7 @@ FoamFile
// surface searchableSphere;
// centre (0.05 0.05 0.005);
// radius 0.025;
// //name sphere.stl; // Optional name if surface triSurfaceMesh
// // name sphere.stl; // Optional name if surface triSurfaceMesh
// }
// }
//