Reacting solvers: Added check for the existence of the inert specie
This commit is contained in:
@ -103,6 +103,9 @@ public:
|
||||
//- Append an element at the end of the list
|
||||
void append(const word&);
|
||||
|
||||
//- Does the list contain the specified name
|
||||
inline bool found(const word&) const;
|
||||
|
||||
//- Does the list contain the specified name
|
||||
inline bool contains(const word&) const;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -25,6 +25,12 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline bool Foam::hashedWordList::found(const word& name) const
|
||||
{
|
||||
return indices_.found(name);
|
||||
}
|
||||
|
||||
|
||||
inline bool Foam::hashedWordList::contains(const word& name) const
|
||||
{
|
||||
return indices_.found(name);
|
||||
|
||||
Reference in New Issue
Block a user