34 return isA<Cloud>(cloud_);
41 if (!isA<Cloud>(cloud_))
44 <<
"The cloud function object '" << function_.name()
45 <<
"' of cloud '" << cloud_.mesh().name()
46 <<
"' requires a cloud of type '" << Cloud::typeName
47 <<
"' (or a derivation thereof), rather than '"
51 return refCast<const Cloud>(cloud_);
bool isCloud() const
Determine whether the cloud is of the given type.
const Cloud & cloud() const
Get a reference to the cloud.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)