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:
Mark Olesen
2019-01-07 09:51:45 +01:00
parent 86e1933057
commit 573a313f46
7 changed files with 85 additions and 92 deletions

View File

@ -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];

View File

@ -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)

View File

@ -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);
}