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 : // Forward Declarations 15 : class Sampler; 16 : 17 : class AdaptiveSamplingCompletedPostprocessor : public GeneralPostprocessor 18 : { 19 : public: 20 : static InputParameters validParams(); 21 : AdaptiveSamplingCompletedPostprocessor(const InputParameters & parameters); 22 : 23 3428 : virtual void initialize() override {} 24 : virtual void execute() override; 25 : virtual Real getValue() const override; 26 146 : virtual void initialSetup() override{}; 27 : virtual void finalize() override; 28 : 29 : protected: 30 : /// Sampler for which we want to know if the sampling has been completed 31 : const Sampler & _sampler; 32 : /// Whether the sampling has been completed 33 : bool _sampling_completed; 34 : };