35 zero(
const std::vector<Real> & xs,
const std::vector<Real> & ys,
const std::vector<Real> & zs);
42 void add(std::size_t i, Real contrib);
48 virtual void execute()
override;
57 const std::vector<Real> &
getX()
const {
return _xs; }
58 const std::vector<Real> &
getY()
const {
return _ys; }
59 const std::vector<Real> &
getZ()
const {
return _zs; }
67 std::vector<Real>
_xs;
68 std::vector<Real>
_ys;
69 std::vector<Real>
_zs;
const InputParameters & parameters() const
Records the instantaneous flux at each Dirac point of a PorousFlow line sink (such as PorousFlowPeace...
const std::vector< Real > & getY() const
std::vector< Real > _fluxes
The flux at each point of the line sink, indexed by Dirac point ID.
void zero(const std::vector< Real > &xs, const std::vector< Real > &ys, const std::vector< Real > &zs)
Resets the flux recorded at every point to zero, and records the current point coordinates.
static InputParameters validParams()
void add(std::size_t i, Real contrib)
Adds contrib to the flux recorded at point i.
const std::vector< Real > & getFluxes() const
Returns the flux recorded at each point.
virtual void finalize() override
Sums the per-point fluxes over all processors.
std::vector< Real > _xs
Coordinates of each point of the line sink, indexed by Dirac point ID.
const std::vector< Real > & getZ() const
virtual void initialize() override
Does nothing.
virtual void execute() override
Does nothing.
const std::vector< Real > & getX() const
Returns the coordinates of each point.