Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : #include "ParsedReporterBase.h" 12 : 13 : /** 14 : * Reporter containing operation between vectors from another Reporter 15 : */ 16 : class ParsedVectorReporter : public ParsedReporterBase 17 : { 18 : public: 19 : static InputParameters validParams(); 20 : 21 : ParsedVectorReporter(const InputParameters & parameters); 22 : 23 346 : virtual void initialize() override {} 24 346 : virtual void execute() override {} 25 : virtual void finalize() override; 26 : 27 : private: 28 : /// input reporter vectors 29 : std::vector<const std::vector<Real> *> _reporter_data; 30 : /// output vector 31 : std::vector<double> & _output_reporter; 32 : };