Reacting solvers: Added check for the existence of the inert specie

This commit is contained in:
Henry Weller
2016-07-06 17:45:34 +01:00
parent 36adf9702c
commit 26a3e56c4f
26 changed files with 83 additions and 64 deletions

View File

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

View File

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