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
d5acd22a
Commit
d5acd22a
authored
Nov 02, 2010
by
Mark Olesen
Browse files
STYLE: use labelUList typedef instead of UList<label> or unallocLabelList
parent
0b6b6ce1
Changes
214
Hide whitespace changes
Inline
Side-by-side
applications/solvers/multiphase/interFoam/LTSInterFoam/MULESTemplates.C
View file @
d5acd22a
...
...
@@ -325,8 +325,8 @@ void Foam::MULES::limiter
const
fvMesh
&
mesh
=
psi
.
mesh
();
const
unallocL
abelList
&
owner
=
mesh
.
owner
();
const
unallocL
abelList
&
neighb
=
mesh
.
neighbour
();
const
l
abel
U
List
&
owner
=
mesh
.
owner
();
const
l
abel
U
List
&
neighb
=
mesh
.
neighbour
();
tmp
<
volScalarField
::
DimensionedInternalField
>
tVsc
=
mesh
.
Vsc
();
const
scalarField
&
V
=
tVsc
();
...
...
applications/test/PackedList4/PackedListTest4.C
View file @
d5acd22a
...
...
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
(
list3
|=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator|= with UList
<label>
\n
"
;
Info
<<
"
\n
operator|= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
|=
list2Labels
).
printBits
(
Info
);
...
...
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
(
list3
+=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator+= with UList
<label>
\n
"
;
Info
<<
"
\n
operator+= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
+=
list2Labels
).
printBits
(
Info
);
...
...
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
(
list3
-=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator-= with UList
<label>
\n
"
;
Info
<<
"
\n
operator-= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
-=
list2Labels
).
printBits
(
Info
);
...
...
applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C
View file @
d5acd22a
...
...
@@ -124,8 +124,8 @@ void Foam::fluentFvMesh::writeFluentMesh() const
fluentMeshFile
<<
"))"
<<
std
::
endl
<<
std
::
endl
;
const
unallocL
abelList
&
own
=
owner
();
const
unallocL
abelList
&
nei
=
neighbour
();
const
l
abel
U
List
&
own
=
owner
();
const
l
abel
U
List
&
nei
=
neighbour
();
const
faceList
&
fcs
=
faces
();
...
...
applications/utilities/mesh/manipulation/checkMesh/checkTopology.C
View file @
d5acd22a
...
...
@@ -138,7 +138,7 @@ Foam::label Foam::checkTopology
{
if
(
patches
[
patchI
].
coupled
())
{
const
unallocL
abelList
&
owners
=
patches
[
patchI
].
faceCells
();
const
l
abel
U
List
&
owners
=
patches
[
patchI
].
faceCells
();
forAll
(
owners
,
i
)
{
...
...
applications/utilities/mesh/manipulation/mirrorMesh/mirrorFvMesh.C
View file @
d5acd22a
...
...
@@ -128,7 +128,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
// Distribute internal faces
labelListList
newCellFaces
(
oldCells
.
size
());
const
unallocL
abelList
&
oldOwnerStart
=
lduAddr
().
ownerStartAddr
();
const
l
abel
U
List
&
oldOwnerStart
=
lduAddr
().
ownerStartAddr
();
forAll
(
newCellFaces
,
cellI
)
{
...
...
@@ -168,7 +168,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
curInsBouFace
=
false
;
// Get faceCells for face insertion
const
unallocL
abelList
&
curFaceCells
=
curPatch
.
faceCells
();
const
l
abel
U
List
&
curFaceCells
=
curPatch
.
faceCells
();
const
label
curStart
=
curPatch
.
start
();
forAll
(
curPatch
,
faceI
)
...
...
applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C
View file @
d5acd22a
...
...
@@ -164,7 +164,7 @@ void Foam::domainDecomposition::decomposeMesh()
// Normal patch. Add faces to processor where the cell
// next to the face lives
const
unallocL
abelList
&
patchFaceCells
=
const
l
abel
U
List
&
patchFaceCells
=
patches
[
patchi
].
faceCells
();
forAll
(
patchFaceCells
,
facei
)
...
...
@@ -185,9 +185,9 @@ void Foam::domainDecomposition::decomposeMesh()
patches
[
patchi
]
);
// cyclic: check opposite side on this processor
const
unallocL
abelList
&
patchFaceCells
=
pp
.
faceCells
();
const
l
abel
U
List
&
patchFaceCells
=
pp
.
faceCells
();
const
unallocL
abelList
&
nbrPatchFaceCells
=
const
l
abel
U
List
&
nbrPatchFaceCells
=
pp
.
neighbPatch
().
faceCells
();
forAll
(
patchFaceCells
,
facei
)
...
...
@@ -259,8 +259,8 @@ void Foam::domainDecomposition::decomposeMesh()
);
// cyclic: check opposite side on this processor
const
unallocL
abelList
&
patchFaceCells
=
pp
.
faceCells
();
const
unallocL
abelList
&
nbrPatchFaceCells
=
const
l
abel
U
List
&
patchFaceCells
=
pp
.
faceCells
();
const
l
abel
U
List
&
nbrPatchFaceCells
=
pp
.
neighbPatch
().
faceCells
();
// Store old sizes. Used to detect which inter-proc patches
...
...
applications/utilities/parallelProcessing/decomposePar/fvFieldDecomposer.C
View file @
d5acd22a
...
...
@@ -30,7 +30,7 @@ License
Foam
::
fvFieldDecomposer
::
patchFieldDecomposer
::
patchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
,
const
l
abel
U
List
&
addressingSlice
,
const
label
addressingOffset
)
:
...
...
@@ -48,7 +48,7 @@ Foam::fvFieldDecomposer::processorVolPatchFieldDecomposer::
processorVolPatchFieldDecomposer
(
const
fvMesh
&
mesh
,
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
)
:
directAddressing_
(
addressingSlice
.
size
())
...
...
@@ -95,7 +95,7 @@ processorVolPatchFieldDecomposer
Foam
::
fvFieldDecomposer
::
processorSurfacePatchFieldDecomposer
::
processorSurfacePatchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
)
:
addressing_
(
addressingSlice
.
size
()),
...
...
@@ -171,7 +171,7 @@ Foam::fvFieldDecomposer::fvFieldDecomposer
processorSurfacePatchFieldDecomposerPtrs_
[
patchi
]
=
new
processorSurfacePatchFieldDecomposer
(
static_cast
<
const
unallocL
abelList
&>
static_cast
<
const
l
abel
U
List
&>
(
procMesh_
.
boundary
()[
patchi
].
patchSlice
(
...
...
applications/utilities/parallelProcessing/decomposePar/fvFieldDecomposer.H
View file @
d5acd22a
...
...
@@ -71,7 +71,7 @@ public:
//- Construct given addressing
patchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
,
const
l
abel
U
List
&
addressingSlice
,
const
label
addressingOffset
);
...
...
@@ -88,7 +88,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
@@ -112,7 +112,7 @@ public:
processorVolPatchFieldDecomposer
(
const
fvMesh
&
mesh
,
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
);
...
...
@@ -128,7 +128,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
@@ -149,7 +149,7 @@ public:
//- Construct given addressing
processorSurfacePatchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
);
...
...
applications/utilities/parallelProcessing/decomposePar/pointFieldDecomposer.H
View file @
d5acd22a
...
...
@@ -88,7 +88,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
src/OpenFOAM/containers/Identifiers/Keyed/Keyed.H
View file @
d5acd22a
...
...
@@ -79,7 +79,7 @@ public:
inline
static
List
<
Keyed
<
T
>
>
createList
(
const
List
<
T
>&
,
const
List
<
label
>
&
keys
const
labelUList
&
keys
);
...
...
src/OpenFOAM/containers/Identifiers/Keyed/KeyedI.H
View file @
d5acd22a
...
...
@@ -90,13 +90,13 @@ Foam::Keyed<T>::createList(const List<T>& lst, const label key)
template
<
class
T
>
inline
Foam
::
List
<
Foam
::
Keyed
<
T
>
>
Foam
::
Keyed
<
T
>::
createList
(
const
List
<
T
>&
lst
,
const
List
<
label
>
&
keys
)
Foam
::
Keyed
<
T
>::
createList
(
const
List
<
T
>&
lst
,
const
labelUList
&
keys
)
{
if
(
lst
.
size
()
!=
keys
.
size
())
{
FatalErrorIn
(
"Foam::Keyed<T>::createList(const List<T>&, const
List<label>
&)"
"Foam::Keyed<T>::createList(const List<T>&, const
labelUList
&)"
)
<<
"size mismatch adding keys to a list:"
<<
nl
<<
"List has size "
<<
lst
.
size
()
...
...
src/OpenFOAM/containers/Lists/BiIndirectList/BiIndirectList.H
View file @
d5acd22a
...
...
@@ -65,7 +65,7 @@ public:
(
const
UList
<
T
>&
posList
,
const
UList
<
T
>&
negList
,
const
UList
<
label
>
&
const
label
UList
&
);
//- Construct given the complete list and by transferring addressing
...
...
@@ -100,7 +100,7 @@ public:
// Edit
//- Reset addressing
inline
void
resetAddressing
(
const
UList
<
label
>
&
);
inline
void
resetAddressing
(
const
label
UList
&
);
inline
void
resetAddressing
(
const
Xfer
<
List
<
label
>
>&
);
...
...
src/OpenFOAM/containers/Lists/BiIndirectList/BiIndirectListI.H
View file @
d5acd22a
...
...
@@ -30,7 +30,7 @@ inline Foam::BiIndirectList<T>::BiIndirectList
(
const
UList
<
T
>&
posList
,
const
UList
<
T
>&
negList
,
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
:
posList_
(
const_cast
<
UList
<
T
>&>
(
posList
)),
...
...
@@ -94,7 +94,7 @@ inline const Foam::List<Foam::label>& Foam::BiIndirectList<T>::addressing()
template
<
class
T
>
inline
void
Foam
::
BiIndirectList
<
T
>::
resetAddressing
(
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
{
addressing_
=
addr
;
...
...
src/OpenFOAM/containers/Lists/CompactListList/CompactListList.C
View file @
d5acd22a
...
...
@@ -59,7 +59,7 @@ Foam::CompactListList<T, Container>::CompactListList(const List<Container>& ll)
template
<
class
T
,
class
Container
>
Foam
::
CompactListList
<
T
,
Container
>::
CompactListList
(
const
UList
<
label
>
&
rowSizes
const
label
UList
&
rowSizes
)
:
size_
(
rowSizes
.
size
()),
...
...
@@ -80,7 +80,7 @@ Foam::CompactListList<T, Container>::CompactListList
template
<
class
T
,
class
Container
>
Foam
::
CompactListList
<
T
,
Container
>::
CompactListList
(
const
UList
<
label
>
&
rowSizes
,
const
label
UList
&
rowSizes
,
const
T
&
t
)
:
...
...
@@ -178,7 +178,7 @@ void Foam::CompactListList<T, Container>::setSize
template
<
class
T
,
class
Container
>
void
Foam
::
CompactListList
<
T
,
Container
>::
setSize
(
const
UList
<
label
>
&
rowSizes
)
void
Foam
::
CompactListList
<
T
,
Container
>::
setSize
(
const
label
UList
&
rowSizes
)
{
size_
=
rowSizes
.
size
();
offsets_
.
setSize
(
rowSizes
.
size
()
+
1
);
...
...
src/OpenFOAM/containers/Lists/CompactListList/CompactListList.H
View file @
d5acd22a
...
...
@@ -114,10 +114,10 @@ public:
inline
CompactListList
(
const
label
nRows
,
const
label
nData
,
const
T
&
);
//- Construct given list of row-sizes.
explicit
CompactListList
(
const
UList
<
label
>
&
rowSizes
);
explicit
CompactListList
(
const
label
UList
&
rowSizes
);
//- Construct given list of row-sizes
CompactListList
(
const
UList
<
label
>
&
rowSizes
,
const
T
&
);
CompactListList
(
const
label
UList
&
rowSizes
,
const
T
&
);
//- Construct by transferring the parameter contents
explicit
CompactListList
(
const
Xfer
<
CompactListList
<
T
,
Container
>
>&
);
...
...
@@ -168,7 +168,7 @@ public:
void
setSize
(
const
label
nRows
,
const
label
nData
,
const
T
&
);
//- Reset size of CompactListList.
void
setSize
(
const
UList
<
label
>
&
rowSizes
);
void
setSize
(
const
label
UList
&
rowSizes
);
//- Reset size of CompactListList.
// This form only allows contraction of the CompactListList.
...
...
@@ -181,7 +181,7 @@ public:
inline
void
resize
(
const
label
nRows
,
const
label
nData
,
const
T
&
);
//- Reset size of CompactListList.
inline
void
resize
(
const
UList
<
label
>
&
rowSizes
);
inline
void
resize
(
const
label
UList
&
rowSizes
);
//- Clear the CompactListList, i.e. set sizes to zero.
void
clear
();
...
...
src/OpenFOAM/containers/Lists/CompactListList/CompactListListI.H
View file @
d5acd22a
...
...
@@ -207,7 +207,7 @@ inline void Foam::CompactListList<T, Container>::resize
template
<
class
T
,
class
Container
>
inline
void
Foam
::
CompactListList
<
T
,
Container
>::
resize
(
const
UList
<
label
>
&
rowSizes
const
label
UList
&
rowSizes
)
{
this
->
setSize
(
rowSizes
);
...
...
src/OpenFOAM/containers/Lists/IndirectList/IndirectList.H
View file @
d5acd22a
...
...
@@ -73,7 +73,7 @@ protected:
// Constructors
//- Construct by copying the addressing array
explicit
inline
IndirectListAddressing
(
const
UList
<
label
>
&
addr
);
explicit
inline
IndirectListAddressing
(
const
label
UList
&
addr
);
//- Construct by transferring addressing array
explicit
inline
IndirectListAddressing
(
const
Xfer
<
List
<
label
>
>&
addr
);
...
...
@@ -89,7 +89,7 @@ protected:
// Edit
//- Reset addressing
inline
void
resetAddressing
(
const
UList
<
label
>
&
);
inline
void
resetAddressing
(
const
label
UList
&
);
inline
void
resetAddressing
(
const
Xfer
<
List
<
label
>
>&
);
};
...
...
@@ -119,7 +119,7 @@ public:
// Constructors
//- Construct given the complete list and the addressing array
inline
IndirectList
(
const
UList
<
T
>&
,
const
UList
<
label
>
&
);
inline
IndirectList
(
const
UList
<
T
>&
,
const
label
UList
&
);
//- Construct given the complete list and by transferring addressing
inline
IndirectList
(
const
UList
<
T
>&
,
const
Xfer
<
List
<
label
>
>&
);
...
...
src/OpenFOAM/containers/Lists/IndirectList/IndirectListI.H
View file @
d5acd22a
...
...
@@ -28,7 +28,7 @@ License
inline
Foam
::
IndirectListAddressing
::
IndirectListAddressing
(
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
:
addressing_
(
addr
)
...
...
@@ -48,7 +48,7 @@ template<class T>
inline
Foam
::
IndirectList
<
T
>::
IndirectList
(
const
UList
<
T
>&
completeList
,
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
:
IndirectListAddressing
(
addr
),
...
...
@@ -117,7 +117,7 @@ Foam::IndirectListAddressing::addressing() const
inline
void
Foam
::
IndirectListAddressing
::
resetAddressing
(
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
{
addressing_
=
addr
;
...
...
src/OpenFOAM/containers/Lists/List/List.C
View file @
d5acd22a
...
...
@@ -155,7 +155,7 @@ Foam::List<T>::List(List<T>& a, bool reUse)
// Construct as subset
template
<
class
T
>
Foam
::
List
<
T
>::
List
(
const
UList
<
T
>&
a
,
const
unallocL
abelList
&
map
)
Foam
::
List
<
T
>::
List
(
const
UList
<
T
>&
a
,
const
l
abel
U
List
&
map
)
:
UList
<
T
>
(
NULL
,
map
.
size
())
{
...
...
src/OpenFOAM/containers/Lists/List/List.H
View file @
d5acd22a
...
...
@@ -115,7 +115,7 @@ public:
List
(
List
<
T
>&
,
bool
reUse
);
//- Construct as subset.
List
(
const
UList
<
T
>&
,
const
unallocL
abelList
&
mapAddressing
);
List
(
const
UList
<
T
>&
,
const
l
abel
U
List
&
mapAddressing
);
//- Construct given start and end iterators.
template
<
class
InputIterator
>
...
...
Prev
1
2
3
4
5
…
11
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment