https://mooseframework.inl.gov
Loading...
Searching...
No Matches
AdaptiveSamplingCompletedPostprocessor.C
Go to the documentation of this file.
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
11
12#include "Sampler.h"
13
15
18{
20 params.addRequiredParam<SamplerName>(
21 "sampler", "Sampler for which we want to know if the sampling has been completed.");
23 "Informs whether a sampler has finished its sampling (1 = completed, 0 otherwise).");
24 return params;
25}
26
28 const InputParameters & parameters)
29 : GeneralPostprocessor(parameters), _sampler(getSampler("sampler")), _sampling_completed(0)
30{
31}
32
33void
38
39void
44
45Real
registerMooseObject("StochasticToolsApp", AdaptiveSamplingCompletedPostprocessor)
const Sampler & _sampler
Sampler for which we want to know if the sampling has been completed.
bool _sampling_completed
Whether the sampling has been completed.
AdaptiveSamplingCompletedPostprocessor(const InputParameters &parameters)
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
virtual bool isAdaptiveSamplingCompleted() const
void gatherMax(T &value)