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 : 12 : #include "ParsedReporterBase.h" 13 : 14 : /** 15 : * Reporter containing operation between vectors from another Reporter 16 : */ 17 : class ParsedScalarReporter : public ParsedReporterBase 18 : { 19 : public: 20 : static InputParameters validParams(); 21 : 22 : ParsedScalarReporter(const InputParameters & parameters); 23 : 24 533 : virtual void initialize() override {} 25 533 : virtual void execute() override {} 26 : virtual void finalize() override; 27 : 28 : private: 29 : /// output scalar 30 : Real & _output_reporter; 31 : /// Input reporter values 32 : std::vector<const Real *> _reporter_data; 33 : };