18 #ifndef LIBMESH_ZERO_FUNCTION_H 19 #define LIBMESH_ZERO_FUNCTION_H 22 #include "libmesh/const_function.h" 37 template <
typename Output=Number>
52 virtual std::unique_ptr<FunctionBase<Output>>
clone()
const override 54 return std::make_unique<ZeroFunction<Output>>();
60 #endif // LIBMESH_ZERO_FUNCTION_H ConstFunction that simply returns 0.
virtual ~ZeroFunction()=default
The libMesh namespace provides an interface to certain functionality in the library.
ZeroFunction & operator=(const ZeroFunction &)=default
virtual std::unique_ptr< FunctionBase< Output > > clone() const override
Function that returns a single value that never changes.