Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
67de20df
Commit
67de20df
authored
May 18, 2016
by
Henry Weller
Browse files
Further standardization of loop index naming: pointI -> pointi, patchI -> patchi
parent
ac632e79
Changes
365
Hide whitespace changes
Inline
Side-by-side
applications/test/PatchTools/Test-PatchTools.C
View file @
67de20df
...
...
@@ -89,16 +89,16 @@ using namespace Foam;
// {
// const vectorField& faceAreas = mesh.faceAreas();
//
// forAll(meshPoints, patchPoint
I
)
// forAll(meshPoints, patchPoint
i
)
// {
// label meshPoint
I
= meshPoints[patchPoint
I
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
I
);
// label meshPoint
i
= meshPoints[patchPoint
i
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
i
);
// if (fnd != coupledPatchMP.end())
// {
// label coupledPoint
I
= fnd();
// label coupledPoint
i
= fnd();
//
// List<point>& pNormals = pointFaceNormals[coupledPoint
I
];
// const labelList& pFaces = p.pointFaces()[patchPoint
I
];
// List<point>& pNormals = pointFaceNormals[coupledPoint
i
];
// const labelList& pFaces = p.pointFaces()[patchPoint
i
];
// pNormals.setSize(pFaces.size());
// forAll(pFaces, i)
// {
...
...
@@ -125,24 +125,24 @@ using namespace Foam;
//
// pointField coupledPointNormals(map.constructSize(), Zero);
//
// forAll(meshPoints, patchPoint
I
)
// forAll(meshPoints, patchPoint
i
)
// {
// label meshPoint
I
= meshPoints[patchPoint
I
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
I
);
// label meshPoint
i
= meshPoints[patchPoint
i
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
i
);
// if (fnd != coupledPatchMP.end())
// {
// label coupledPoint
I
= fnd();
// const labelList& slaveSlots = slaves[coupledPoint
I
];
// label coupledPoint
i
= fnd();
// const labelList& slaveSlots = slaves[coupledPoint
i
];
// const labelList& transformedSlaveSlots =
// transformedSlaves[coupledPoint
I
];
// transformedSlaves[coupledPoint
i
];
//
// label nFaces = slaveSlots.size()+transformedSlaveSlots.size();
// if (nFaces > 0)
// {
// // Combine
// point& n = coupledPointNormals[coupledPoint
I
];
// point& n = coupledPointNormals[coupledPoint
i
];
//
// n += sum(pointFaceNormals[coupledPoint
I
]);
// n += sum(pointFaceNormals[coupledPoint
i
]);
//
// forAll(slaveSlots, i)
// {
...
...
@@ -178,14 +178,14 @@ using namespace Foam;
//
//
// // Override patch normals
// forAll(meshPoints, patchPoint
I
)
// forAll(meshPoints, patchPoint
i
)
// {
// label meshPoint
I
= meshPoints[patchPoint
I
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
I
);
// label meshPoint
i
= meshPoints[patchPoint
i
];
// Map<label>::const_iterator fnd = coupledPatchMP.find(meshPoint
i
);
// if (fnd != coupledPatchMP.end())
// {
// label coupledPoint
I
= fnd();
// extrudeN[patchPoint
I
] = coupledPointNormals[coupledPoint
I
];
// label coupledPoint
i
= fnd();
// extrudeN[patchPoint
i
] = coupledPointNormals[coupledPoint
i
];
// }
// }
//
...
...
@@ -242,7 +242,7 @@ int main(int argc, char *argv[])
forAll
(
en
,
patchEdgeI
)
{
const
edge
&
patchE
=
pp
.
edges
()[
patchEdgeI
];
//str.write(pp.localPoints()[point
I
], en[point
I
]);
//str.write(pp.localPoints()[point
i
], en[point
i
]);
const
point
pt
=
patchE
.
centre
(
pp
.
localPoints
());
str
.
write
(
linePointRef
(
pt
,
pt
+
0
.
1
*
en
[
patchEdgeI
]));
}
...
...
@@ -264,9 +264,9 @@ int main(int argc, char *argv[])
// identity(pp.size())+pp.start()
// )
// );
// forAll(pn, point
I
)
// forAll(pn, point
i
)
// {
// str.write(linePointRef(pp.localPoints()[point
I
], pn[point
I
]));
// str.write(linePointRef(pp.localPoints()[point
i
], pn[point
i
]));
// }
// }
// {
...
...
@@ -281,9 +281,9 @@ int main(int argc, char *argv[])
// identity(pp.size())+pp.start()
// )
// );
// forAll(pn, point
I
)
// forAll(pn, point
i
)
// {
// str.write(linePointRef(pp.localPoints()[point
I
], pn[point
I
]));
// str.write(linePointRef(pp.localPoints()[point
i
], pn[point
i
]));
// }
// }
...
...
applications/test/PointEdgeWave/Test-PointEdgeWave.C
View file @
67de20df
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -81,9 +81,9 @@ int main(int argc, char *argv[])
forAll
(
pp
.
meshPoints
(),
ppI
)
{
label
meshPoint
I
=
pp
.
meshPoints
()[
ppI
];
wallPoints
[
nPoints
]
=
meshPoint
I
;
wallInfo
[
nPoints
]
=
pointEdgePoint
(
mesh
.
points
()[
meshPoint
I
],
0
.
0
);
label
meshPoint
i
=
pp
.
meshPoints
()[
ppI
];
wallPoints
[
nPoints
]
=
meshPoint
i
;
wallInfo
[
nPoints
]
=
pointEdgePoint
(
mesh
.
points
()[
meshPoint
i
],
0
.
0
);
nPoints
++
;
}
}
...
...
@@ -120,9 +120,9 @@ int main(int argc, char *argv[])
dimensionedScalar
(
"wallDist"
,
dimLength
,
0
.
0
)
);
forAll
(
allPointInfo
,
point
I
)
forAll
(
allPointInfo
,
point
i
)
{
psf
[
point
I
]
=
Foam
::
sqrt
(
allPointInfo
[
point
I
].
distSqr
());
psf
[
point
i
]
=
Foam
::
sqrt
(
allPointInfo
[
point
i
].
distSqr
());
}
Info
<<
"Writing wallDist pointScalarField to "
<<
runTime
.
value
()
...
...
applications/test/globalMeshData/Test-globalMeshData.C
View file @
67de20df
...
...
@@ -76,14 +76,14 @@ int main(int argc, char *argv[])
);
// Print
forAll
(
slaves
,
point
I
)
forAll
(
slaves
,
point
i
)
{
const
labelList
&
slavePoints
=
slaves
[
point
I
];
const
labelList
&
slavePoints
=
slaves
[
point
i
];
if
(
slavePoints
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
<<
" coord:"
<<
coords
[
point
I
]
Pout
<<
"Master point:"
<<
point
i
<<
" coord:"
<<
coords
[
point
i
]
<<
" connected to untransformed slave points:"
<<
endl
;
forAll
(
slavePoints
,
i
)
...
...
@@ -92,12 +92,12 @@ int main(int argc, char *argv[])
}
}
const
labelList
&
transformedSlavePoints
=
transformedSlaves
[
point
I
];
const
labelList
&
transformedSlavePoints
=
transformedSlaves
[
point
i
];
if
(
transformedSlavePoints
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
<<
" coord:"
<<
coords
[
point
I
]
Pout
<<
"Master point:"
<<
point
i
<<
" coord:"
<<
coords
[
point
i
]
<<
" connected to transformed slave points:"
<<
endl
;
forAll
(
transformedSlavePoints
,
i
)
...
...
@@ -204,14 +204,14 @@ int main(int argc, char *argv[])
);
// Print
forAll
(
slaves
,
point
I
)
forAll
(
slaves
,
point
i
)
{
const
labelList
&
slaveFaces
=
slaves
[
point
I
];
const
labelList
&
slaveFaces
=
slaves
[
point
i
];
if
(
slaveFaces
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
<<
" at:"
<<
coupledPatch
.
localPoints
()[
point
I
]
Pout
<<
"Master point:"
<<
point
i
<<
" at:"
<<
coupledPatch
.
localPoints
()[
point
i
]
<<
" connected to "
<<
slaveFaces
.
size
()
<<
" untransformed faces:"
<<
endl
;
...
...
@@ -221,11 +221,11 @@ int main(int argc, char *argv[])
}
}
const
labelList
&
transformedSlaveFaces
=
transformedSlaves
[
point
I
];
const
labelList
&
transformedSlaveFaces
=
transformedSlaves
[
point
i
];
if
(
transformedSlaveFaces
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
Pout
<<
"Master point:"
<<
point
i
<<
" connected to "
<<
transformedSlaveFaces
.
size
()
<<
" transformed faces:"
<<
endl
;
...
...
@@ -262,14 +262,14 @@ int main(int argc, char *argv[])
);
// Print
forAll
(
slaves
,
point
I
)
forAll
(
slaves
,
point
i
)
{
const
labelList
&
pointCells
=
slaves
[
point
I
];
const
labelList
&
pointCells
=
slaves
[
point
i
];
if
(
pointCells
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
<<
" at:"
<<
coupledPatch
.
localPoints
()[
point
I
]
Pout
<<
"Master point:"
<<
point
i
<<
" at:"
<<
coupledPatch
.
localPoints
()[
point
i
]
<<
" connected to "
<<
pointCells
.
size
()
<<
" untransformed boundaryCells:"
<<
endl
;
...
...
@@ -279,11 +279,11 @@ int main(int argc, char *argv[])
}
}
const
labelList
&
transformPointCells
=
transformedSlaves
[
point
I
];
const
labelList
&
transformPointCells
=
transformedSlaves
[
point
i
];
if
(
transformPointCells
.
size
()
>
0
)
{
Pout
<<
"Master point:"
<<
point
I
Pout
<<
"Master point:"
<<
point
i
<<
" connected to "
<<
transformPointCells
.
size
()
<<
" transformed boundaryCells:"
<<
endl
;
...
...
applications/test/patchRegion/Test-patchRegion.C
View file @
67de20df
...
...
@@ -125,22 +125,22 @@ int main(int argc, char *argv[])
{
label
faceRegion
=
allFaceInfo
[
facei
].
regions
()[
fp
];
label
point
I
=
f
[
fp
];
label
point
i
=
f
[
fp
];
if
(
currentRegion
[
point
I
]
==
-
1
)
if
(
currentRegion
[
point
i
]
==
-
1
)
{
currentRegion
[
point
I
]
=
faceRegion
;
currentRegion
[
point
i
]
=
faceRegion
;
}
else
if
(
currentRegion
[
point
I
]
!=
faceRegion
)
else
if
(
currentRegion
[
point
i
]
!=
faceRegion
)
{
if
(
duplicateRegion
[
point
I
]
==
-
1
)
if
(
duplicateRegion
[
point
i
]
==
-
1
)
{
Pout
<<
"Multi region point:"
<<
patch
.
localPoints
()[
point
I
]
<<
" with region:"
<<
currentRegion
[
point
I
]
<<
patch
.
localPoints
()[
point
i
]
<<
" with region:"
<<
currentRegion
[
point
i
]
<<
" and region:"
<<
faceRegion
<<
endl
;
duplicateRegion
[
point
I
]
=
currentRegion
[
point
I
];
duplicateRegion
[
point
i
]
=
currentRegion
[
point
i
];
}
}
}
...
...
applications/test/primitivePatch/Test-PrimitivePatch.C
View file @
67de20df
...
...
@@ -43,9 +43,9 @@ typedef PrimitivePatch<face, List, const pointField&> myPrimitivePatch;
void
writeObj
(
Ostream
&
os
,
const
pointField
&
points
)
{
forAll
(
points
,
point
I
)
forAll
(
points
,
point
i
)
{
const
point
&
pt
=
points
[
point
I
];
const
point
&
pt
=
points
[
point
i
];
os
<<
"v "
<<
pt
.
x
()
<<
' '
<<
pt
.
y
()
<<
' '
<<
pt
.
z
()
<<
endl
;
}
...
...
applications/test/syncTools/Test-syncTools.C
View file @
67de20df
...
...
@@ -215,10 +215,10 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
{
const
point
pt
=
localPoints
[
i
]
+
1e-4
*
rndGen
.
vector01
();
label
meshPoint
I
=
allBoundary
.
meshPoints
()[
i
];
label
meshPoint
i
=
allBoundary
.
meshPoints
()[
i
];
sparseData
.
insert
(
meshPoint
I
,
pt
);
fullData
[
meshPoint
I
]
=
pt
;
sparseData
.
insert
(
meshPoint
i
,
pt
);
fullData
[
meshPoint
i
]
=
pt
;
}
//Pout<< "sparseData:" << sparseData << endl;
...
...
@@ -241,18 +241,18 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
// Compare.
// 1. Is all fullData also present in sparseData and same value
forAll
(
fullData
,
meshPoint
I
)
forAll
(
fullData
,
meshPoint
i
)
{
const
point
&
fullPt
=
fullData
[
meshPoint
I
];
const
point
&
fullPt
=
fullData
[
meshPoint
i
];
if
(
fullPt
!=
point
(
GREAT
,
GREAT
,
GREAT
))
{
const
point
&
sparsePt
=
sparseData
[
meshPoint
I
];
const
point
&
sparsePt
=
sparseData
[
meshPoint
i
];
if
(
fullPt
!=
sparsePt
)
{
FatalErrorInFunction
<<
"point:"
<<
meshPoint
I
<<
"point:"
<<
meshPoint
i
<<
" full:"
<<
fullPt
<<
" sparse:"
<<
sparsePt
<<
exit
(
FatalError
);
...
...
@@ -264,13 +264,13 @@ void testSparseData(const polyMesh& mesh, Random& rndGen)
forAllConstIter
(
Map
<
point
>
,
sparseData
,
iter
)
{
const
point
&
sparsePt
=
iter
();
label
meshPoint
I
=
iter
.
key
();
const
point
&
fullPt
=
fullData
[
meshPoint
I
];
label
meshPoint
i
=
iter
.
key
();
const
point
&
fullPt
=
fullData
[
meshPoint
i
];
if
(
fullPt
!=
sparsePt
)
{
FatalErrorInFunction
<<
"point:"
<<
meshPoint
I
<<
"point:"
<<
meshPoint
i
<<
" full:"
<<
fullPt
<<
" sparse:"
<<
sparsePt
<<
exit
(
FatalError
);
...
...
@@ -387,14 +387,14 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
point
(
GREAT
,
GREAT
,
GREAT
)
);
forAll
(
syncedPoints
,
point
I
)
forAll
(
syncedPoints
,
point
i
)
{
if
(
mag
(
syncedPoints
[
point
I
]
-
mesh
.
points
()[
point
I
])
>
SMALL
)
if
(
mag
(
syncedPoints
[
point
i
]
-
mesh
.
points
()[
point
i
])
>
SMALL
)
{
FatalErrorInFunction
<<
"Point "
<<
point
I
<<
" original location "
<<
mesh
.
points
()[
point
I
]
<<
" synced location "
<<
syncedPoints
[
point
I
]
<<
"Point "
<<
point
i
<<
" original location "
<<
mesh
.
points
()[
point
i
]
<<
" synced location "
<<
syncedPoints
[
point
i
]
<<
exit
(
FatalError
);
}
}
...
...
@@ -407,11 +407,11 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
PackedBoolList
isMasterPoint
(
syncTools
::
getMasterPoints
(
mesh
));
forAll
(
isMasterPoint
,
point
I
)
forAll
(
isMasterPoint
,
point
i
)
{
if
(
isMasterPoint
[
point
I
])
if
(
isMasterPoint
[
point
i
])
{
nMasters
[
point
I
]
=
1
;
nMasters
[
point
i
]
=
1
;
}
}
...
...
@@ -423,14 +423,14 @@ void testPointSync(const polyMesh& mesh, Random& rndGen)
0
);
forAll
(
nMasters
,
point
I
)
forAll
(
nMasters
,
point
i
)
{
if
(
nMasters
[
point
I
]
!=
1
)
if
(
nMasters
[
point
i
]
!=
1
)
{
WarningInFunction
<<
"Point "
<<
point
I
<<
" original location "
<<
mesh
.
points
()[
point
I
]
<<
" has "
<<
nMasters
[
point
I
]
<<
"Point "
<<
point
i
<<
" original location "
<<
mesh
.
points
()[
point
i
]
<<
" has "
<<
nMasters
[
point
i
]
<<
" masters."
<<
endl
;
}
...
...
applications/test/wallDist/Test-wallDist.C
View file @
67de20df
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -68,9 +68,9 @@ int main(int argc, char *argv[])
const
point
half
(
0
.
5
*
(
meshBb
.
min
()
+
meshBb
.
max
()));
forAll
(
newPoints
,
point
I
)
forAll
(
newPoints
,
point
i
)
{
point
&
pt
=
newPoints
[
point
I
];
point
&
pt
=
newPoints
[
point
i
];
// expand around half
pt
.
y
()
+=
pt
.
y
()
-
half
.
y
();
...
...
applications/utilities/mesh/advanced/modifyMesh/cellSplitter.C
View file @
67de20df
...
...
@@ -168,7 +168,7 @@ void Foam::cellSplitter::setRefinement
label
anchorPoint
=
mesh_
.
cellPoints
()[
celli
][
0
];
label
addedPoint
I
=
label
addedPoint
i
=
meshMod
.
setAction
(
polyAddPoint
...
...
@@ -179,9 +179,9 @@ void Foam::cellSplitter::setRefinement
true
// supports a cell
)
);
addedPoints_
.
insert
(
celli
,
addedPoint
I
);
addedPoints_
.
insert
(
celli
,
addedPoint
i
);
//Pout<< "Added point " << addedPoint
I
//Pout<< "Added point " << addedPoint
i
// << iter() << " in cell " << celli << " with centre "
// << mesh_.cellCentres()[celli] << endl;
}
...
...
@@ -242,7 +242,7 @@ void Foam::cellSplitter::setRefinement
{
label
celli
=
iter
.
key
();
label
midPoint
I
=
addedPoints_
[
celli
];
label
midPoint
i
=
addedPoints_
[
celli
];
const
cell
&
cFaces
=
mesh_
.
cells
()[
celli
];
...
...
@@ -283,13 +283,13 @@ void Foam::cellSplitter::setRefinement
// edge used in face order.
newF
[
0
]
=
e
[
1
];
newF
[
1
]
=
e
[
0
];
newF
[
2
]
=
midPoint
I
;
newF
[
2
]
=
midPoint
i
;
}
else
{
newF
[
0
]
=
e
[
0
];
newF
[
1
]
=
e
[
1
];
newF
[
2
]
=
midPoint
I
;
newF
[
2
]
=
midPoint
i
;
}
// Now newF points away from cell0
...
...
@@ -329,13 +329,13 @@ void Foam::cellSplitter::setRefinement
// edge used in face order.
newF
[
0
]
=
e
[
1
];
newF
[
1
]
=
e
[
0
];
newF
[
2
]
=
midPoint
I
;
newF
[
2
]
=
midPoint
i
;
}
else
{
newF
[
0
]
=
e
[
0
];
newF
[
1
]
=
e
[
1
];
newF
[
2
]
=
midPoint
I
;
newF
[
2
]
=
midPoint
i
;
}
// Now newF points away from cell1
...
...
@@ -473,13 +473,13 @@ void Foam::cellSplitter::updateMesh(const mapPolyMesh& morphMap)
label
newCelli
=
morphMap
.
reverseCellMap
()[
oldCelli
];
label
oldPoint
I
=
iter
();
label
oldPoint
i
=
iter
();
label
newPoint
I
=
morphMap
.
reversePointMap
()[
oldPoint
I
];
label
newPoint
i
=
morphMap
.
reversePointMap
()[
oldPoint
i
];
if
(
newCelli
>=
0
&&
newPoint
I
>=
0
)
if
(
newCelli
>=
0
&&
newPoint
i
>=
0
)
{
newAddedPoints
.
insert
(
newCelli
,
newPoint
I
);
newAddedPoints
.
insert
(
newCelli
,
newPoint
i
);
}
}
...
...
applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C
View file @
67de20df
...
...
@@ -79,9 +79,9 @@ label findPoint(const primitivePatch& pp, const point& nearPoint)
forAll
(
meshPoints
,
i
)
{
label
point
I
=
meshPoints
[
i
];
label
point
i
=
meshPoints
[
i
];
scalar
distSqr
=
magSqr
(
nearPoint
-
points
[
point
I
]);
scalar
distSqr
=
magSqr
(
nearPoint
-
points
[
point
i
]);
if
(
distSqr
<
minDistSqr
)
{
...
...
@@ -89,12 +89,12 @@ label findPoint(const primitivePatch& pp, const point& nearPoint)
almostMinI
=
minI
;
minDistSqr
=
distSqr
;
minI
=
point
I
;
minI
=
point
i
;
}
else
if
(
distSqr
<
almostMinDistSqr
)
{
almostMinDistSqr
=
distSqr
;
almostMinI
=
point
I
;
almostMinI
=
point
i
;
}
}
...
...
@@ -292,14 +292,14 @@ label findCell(const primitiveMesh& mesh, const point& nearPoint)
forAll
(
cPoints
,
i
)
{
label
point
I
=
cPoints
[
i
];
label
point
i
=
cPoints
[
i
];
scalar
distSqr
=
magSqr
(
nearPoint
-
mesh
.
points
()[
point
I
]);
scalar
distSqr
=
magSqr
(
nearPoint
-
mesh
.
points
()[
point
i
]);
if
(
distSqr
<
minDistSqr
)
{
minDistSqr
=
distSqr
;
minI
=
point
I
;
minI
=
point
i
;
}
}
...
...
@@ -429,11 +429,11 @@ int main(int argc, char *argv[])
{
const
Pair
<
point
>&
pts
=
pointsToMove
[
i
];
label
point
I
=
findPoint
(
allBoundary
,
pts
.
first
());
label
point
i
=
findPoint
(
allBoundary
,
pts
.
first
());
if
(
point
I
==
-
1
||
!
pointToPos
.
insert
(
point
I
,
pts
.
second
()))
if
(
point
i
==
-
1
||
!
pointToPos
.
insert
(
point
i
,
pts
.
second
()))
{
Info
<<
"Could not insert mesh point "
<<
point
I
Info
<<
"Could not insert mesh point "
<<
point
i
<<
" for input point "
<<
pts
.
first
()
<<
nl
<<
"Perhaps the point is already marked for moving?"
<<
endl
;
validInputs
=
false
;
...
...
applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C
View file @
67de20df
...
...
@@ -114,11 +114,11 @@ int main(int argc, char *argv[])
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
iter
.
key
()];
const
labelList
&
meshPoints
=
pp
.
meshPoints
();
forAll
(
meshPoints
,
point
I
)
forAll
(
meshPoints
,
point
i
)
{
label
meshPoint
I
=
meshPoints
[
point
I
];
label
meshPoint
i
=
meshPoints
[
point
i
];
const
labelList
&
pCells
=
mesh
.
pointCells
()[
meshPoint
I
];
const
labelList
&
pCells
=
mesh
.
pointCells
()[
meshPoint
i
];
forAll
(
pCells
,
pCelli
)
{
...
...
@@ -156,9 +156,9 @@ int main(int argc, char *argv[])
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
iter
.
key
()];
const
labelList
&
meshPoints
=
pp
.
meshPoints
();
forAll
(
meshPoints
,
point
I
)
forAll
(
meshPoints
,
point
i
)
{
vertOnPatch
[
meshPoints
[
point
I
]]
=
true
;
vertOnPatch
[
meshPoints
[
point
i
]]
=
true
;
}
}
...
...
@@ -167,24 +167,24 @@ int main(int argc, char *argv[])
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
iter
.
key
()];
const
labelList
&
meshPoints
=
pp
.
meshPoints
();
forAll
(
meshPoints
,
point
I
)
forAll
(
meshPoints
,
point
i
)
{
label
meshPoint
I
=
meshPoints
[
point
I
];
label
meshPoint
i
=
meshPoints
[
point
i
];
const
labelList
&
pEdges
=
mesh
.
pointEdges
()[
meshPoint
I
];
const
labelList
&
pEdges
=
mesh
.
pointEdges
()[
meshPoint
i
];
forAll
(
pEdges
,
pEdgeI
)
{
const
label
edgeI
=
pEdges
[
pEdgeI
];
const
edge
&
e
=
mesh
.
edges
()[
edgeI
];
label
otherPoint
I
=
e
.
otherVertex
(
meshPoint
I
);
label
otherPoint
i
=
e
.
otherVertex
(
meshPoint
i
);
<