mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: deprecate hashedWordList contains() method
- identical to found(), which should be used for more consistency. The contains() is a remnant from when hashedWordList was generalized from a speciesTable (OCT 2010)
This commit is contained in:
@ -89,7 +89,7 @@ Foam::interfaceCompositionModels::Henry<Thermo, OtherThermo>::Yf
|
||||
const volScalarField& Tf
|
||||
) const
|
||||
{
|
||||
if (this->speciesNames_.contains(speciesName))
|
||||
if (this->speciesNames_.found(speciesName))
|
||||
{
|
||||
const label index = this->speciesNames_[speciesName];
|
||||
|
||||
|
||||
@ -121,7 +121,7 @@ Foam::interfaceCompositionModels::Raoult<Thermo, OtherThermo>::Yf
|
||||
const volScalarField& Tf
|
||||
) const
|
||||
{
|
||||
if (this->speciesNames_.contains(speciesName))
|
||||
if (this->speciesNames_.found(speciesName))
|
||||
{
|
||||
return
|
||||
this->otherThermo_.composition().Y(speciesName)
|
||||
@ -144,7 +144,7 @@ Foam::interfaceCompositionModels::Raoult<Thermo, OtherThermo>::YfPrime
|
||||
const volScalarField& Tf
|
||||
) const
|
||||
{
|
||||
if (this->speciesNames_.contains(speciesName))
|
||||
if (this->speciesNames_.found(speciesName))
|
||||
{
|
||||
return
|
||||
this->otherThermo_.composition().Y(speciesName)
|
||||
|
||||
@ -63,17 +63,9 @@ const Foam::hashedWordList& Foam::interfaceCompositionModel::species() const
|
||||
}
|
||||
|
||||
|
||||
bool Foam::interfaceCompositionModel::transports
|
||||
(
|
||||
word& speciesName
|
||||
) const
|
||||
bool Foam::interfaceCompositionModel::transports(word& speciesName) const
|
||||
{
|
||||
if (this->speciesNames_.contains(speciesName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return this->speciesNames_.found(speciesName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user