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 "GeneralPostprocessor.h" 13 : 14 : class TransientBase; 15 : 16 : /** 17 : * Gets the relative solution norm from the transient executioner 18 : */ 19 : class RelativeSolutionDifferenceNorm : public GeneralPostprocessor 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : /** 25 : * Class constructor 26 : * @param parameters The input parameters 27 : */ 28 : RelativeSolutionDifferenceNorm(const InputParameters & parameters); 29 : 30 : ///@{ 31 : /** 32 : * No action taken 33 : */ 34 22 : virtual void initialize() override {} 35 22 : virtual void execute() override {} 36 : ///@} 37 : 38 : /** 39 : * Returns the relative solution norm taken from the transient executioner 40 : * @return A const reference to the value of the postprocessor 41 : */ 42 : virtual Real getValue() const override; 43 : 44 : protected: 45 : /// Transient executioner 46 : TransientBase * _trex; 47 : };