44 <<
"Number of efficiencies = " <<
size()
45 <<
" is not equal to the number of species " << species_.
size()
63 if (coeffs.
size() != species_.
size())
66 <<
"Number of efficiencies = " << coeffs.
size()
67 <<
" is not equal to the number of species " << species_.
size()
71 for (
const auto& coeff : coeffs)
73 const label idx = species.
find(coeff.first());
78 <<
"No such species: " << coeffs.first()
88 const scalar defaultEff =
dict.
get<scalar>(
"defaultEfficiency");
101 M += operator[](i)*c[i];
113 coeffs[i].
first() = species_[i];
114 coeffs[i].second() = operator[](i);
void operator=(const UList< scalar > &a)
Assignment to UList operator. Takes linear time.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
T & first()
Return the first element of the list.
label size() const noexcept
The number of elements in the UList.
void size(const label n)
Older name for setAddressableSize.
T & operator[](const label i)
Return element of UList.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
virtual bool write()
Write the output fields.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
label find(const word &val) const
Find index of the value (searches the hash).
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.