File expressionparser.cxx#

Functions

bool toBool(BoutReal rval)#

Convert a real value to a Boolean Throw exception if rval isn’t close to 0 or 1

class LogicalNot : public FieldGenerator#

Public Functions

inline LogicalNot(FieldGeneratorPtr expr)#

Logically negate a boolean expression.

inline virtual double generate(const Context &ctx) override#

Evaluate expression, check it’s a bool, and return 1 or 0.

inline virtual std::string str() const override#

Create a string representation of the generator, for debugging output.

Private Members

FieldGeneratorPtr expr#
namespace string_literals#