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 "GeneralReporter.h" 13 : 14 : class SolutionInvalidity; 15 : 16 : /** 17 : * Reports the summary table of solution invalid warnings 18 : */ 19 : class SolutionInvalidityReporter : public GeneralReporter 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : SolutionInvalidityReporter(const InputParameters & parameters); 25 : 26 142 : void initialize() override {} 27 142 : void finalize() override {} 28 142 : void execute() override {} 29 : }; 30 : 31 : // Store solution invalid warnings to a json file 32 : void to_json(nlohmann::json & json, const SolutionInvalidity * const & solution_invalidity); 33 : 34 : /** 35 : * Store and load methods for const SolutionInvalidity *, used in the SolutionInvalidityReporter, 36 : * which does nothing. 37 : * 38 : * We need not do anything here because the data store/load capability of the SolutionInvalidity 39 : * (non-pointer) object is specialized. The store/load capability of that object will properly 40 : * initialize what the reporter value in SolutionInvalidityReporter points to. 41 : */ 42 : ///@{ 43 : void 44 31 : dataStore(std::ostream &, const SolutionInvalidity *&, void *) 45 : { 46 31 : } 47 : void 48 11 : dataLoad(std::istream &, const SolutionInvalidity *&, void *) 49 : { 50 11 : } 51 : ///@}