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
7901ce1c
Commit
7901ce1c
authored
Dec 21, 2010
by
Mark Olesen
Browse files
COMP: add 'this->' qualifier to find methods in base case
parent
a583a228
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H
View file @
7901ce1c
...
...
@@ -82,7 +82,7 @@ inline bool Foam::HashTable<T, Key, Hash>::insert
const
T
&
newEntry
)
{
return
set
(
key
,
newEntry
,
true
);
return
this
->
set
(
key
,
newEntry
,
true
);
}
...
...
@@ -93,7 +93,7 @@ inline bool Foam::HashTable<T, Key, Hash>::set
const
T
&
newEntry
)
{
return
set
(
key
,
newEntry
,
false
);
return
this
->
set
(
key
,
newEntry
,
false
);
}
...
...
@@ -110,9 +110,9 @@ Foam::HashTable<T, Key, Hash>::xfer()
template
<
class
T
,
class
Key
,
class
Hash
>
inline
T
&
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
operator
[](
const
Key
&
key
)
{
iterator
iter
=
find
(
key
);
iterator
iter
=
this
->
find
(
key
);
if
(
iter
==
end
())
if
(
iter
==
this
->
end
())
{
FatalErrorIn
(
"HashTable<T, Key, Hash>::operator[](const Key&)"
)
<<
key
<<
" not found in table. Valid entries: "
...
...
@@ -127,9 +127,9 @@ inline T& Foam::HashTable<T, Key, Hash>::operator[](const Key& key)
template
<
class
T
,
class
Key
,
class
Hash
>
inline
const
T
&
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
operator
[](
const
Key
&
key
)
const
{
const_iterator
iter
=
find
(
key
);
const_iterator
iter
=
this
->
find
(
key
);
if
(
iter
==
cend
())
if
(
iter
==
this
->
cend
())
{
FatalErrorIn
(
"HashTable<T, Key, Hash>::operator[](const Key&) const"
)
<<
key
<<
" not found in table. Valid entries: "
...
...
@@ -144,11 +144,11 @@ inline const T& Foam::HashTable<T, Key, Hash>::operator[](const Key& key) const
template
<
class
T
,
class
Key
,
class
Hash
>
inline
T
&
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
operator
()(
const
Key
&
key
)
{
iterator
iter
=
find
(
key
);
iterator
iter
=
this
->
find
(
key
);
if
(
iter
==
end
())
if
(
iter
==
this
->
end
())
{
insert
(
key
,
T
());
this
->
insert
(
key
,
T
());
return
*
find
(
key
);
}
else
...
...
src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrListIO.C
View file @
7901ce1c
...
...
@@ -82,7 +82,7 @@ void Foam::LPtrList<LListBase, T>::read(Istream& is, const INew& iNew)
for
(
label
i
=
1
;
i
<
s
;
++
i
)
{
append
(
tPtr
->
clone
().
ptr
());
this
->
append
(
tPtr
->
clone
().
ptr
());
}
}
}
...
...
src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.C
View file @
7901ce1c
...
...
@@ -175,7 +175,7 @@ bool Foam::TimeActivatedExplicitSourceList<Type>::readData(Istream& is)
typename
TimeActivatedExplicitSource
<
Type
>::
iNew
(
mesh_
,
fieldNames_
)
);
transfer
(
newSources
);
this
->
transfer
(
newSources
);
return
is
.
good
();
}
...
...
src/finiteVolume/interpolation/surfaceInterpolation/multivariateSchemes/multivariateSurfaceInterpolationScheme/multivariateSurfaceInterpolationScheme.H
View file @
7901ce1c
...
...
@@ -67,7 +67,7 @@ public:
void
add
(
const
GeometricField
<
Type
,
fvPatchField
,
volMesh
>&
f
)
{
insert
(
f
.
name
(),
&
f
);
this
->
insert
(
f
.
name
(),
&
f
);
}
};
...
...
src/lagrangian/intermediate/parcels/Templates/ReactingMultiphaseParcel/ReactingMultiphaseParcel.C
View file @
7901ce1c
...
...
@@ -265,7 +265,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
scalarField
Cs
(
td
.
cloud
().
composition
().
carrier
().
species
().
size
(),
0
.
0
);
// Calc mass and enthalpy transfer due to phase change
calcPhaseChange
this
->
calcPhaseChange
(
td
,
dt
,
...
...
@@ -313,7 +313,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
);
// Correct surface values due to emitted species
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Pr
,
kappa
);
this
->
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Pr
,
kappa
);
// Surface reactions
...
...
@@ -371,7 +371,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
// Calculate new particle temperature
scalar
Cuh
=
0
.
0
;
scalar
T1
=
calcHeatTransfer
this
->
calcHeatTransfer
(
td
,
dt
,
...
...
@@ -396,7 +396,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
// Calculate new particle velocity
scalar
Cud
=
0
;
vector
U1
=
calcVelocity
this
->
calcVelocity
(
td
,
dt
,
...
...
src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcel.C
View file @
7901ce1c
...
...
@@ -322,7 +322,7 @@ void Foam::ReactingParcel<ParcelType>::calc
// Calculate new particle temperature
scalar
Cuh
=
0
.
0
;
scalar
T1
=
calcHeatTransfer
this
->
calcHeatTransfer
(
td
,
dt
,
...
...
@@ -347,7 +347,7 @@ void Foam::ReactingParcel<ParcelType>::calc
// Calculate new particle velocity
scalar
Cud
=
0
.
0
;
vector
U1
=
calcVelocity
this
->
calcVelocity
(
td
,
dt
,
...
...
src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcel.C
View file @
7901ce1c
...
...
@@ -202,7 +202,7 @@ void Foam::ThermoParcel<ParcelType>::calc
// Calculate new particle velocity
scalar
Cuh
=
0
.
0
;
scalar
T1
=
calcHeatTransfer
this
->
calcHeatTransfer
(
td
,
dt
,
...
...
@@ -227,7 +227,7 @@ void Foam::ThermoParcel<ParcelType>::calc
// Calculate new particle velocity
scalar
Cud
=
0
.
0
;
vector
U1
=
calcVelocity
this
->
calcVelocity
(
td
,
dt
,
...
...
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