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