https://mooseframework.inl.gov
EmptyReporter.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 #include "EmptyReporter.h"
10 #include "MooseUtils.h"
11 
12 registerMooseObject("PorousFlowTestApp", EmptyReporter);
13 
16 {
18  params.addClassDescription(
19  "This is a dummy reporter containing data needed for the"
20  " PorousFlowLineGeometry but is empty to mimic a transfer"
21  " not taking place or the reporter not being properly filled"
22  " by another reporter");
23  return params;
24 }
25 
27  : GeneralReporter(parameters),
28  _coord_x(declareValueByName<std::vector<Real>>("x", REPORTER_MODE_REPLICATED)),
29  _coord_y(declareValueByName<std::vector<Real>>("y", REPORTER_MODE_REPLICATED)),
30  _coord_z(declareValueByName<std::vector<Real>>("z", REPORTER_MODE_REPLICATED)),
31  _weight(declareValueByName<std::vector<Real>>("w", REPORTER_MODE_REPLICATED))
32 {
33 }
EmptyReporter(const InputParameters &parameters)
Definition: EmptyReporter.C:26
static InputParameters validParams()
registerMooseObject("PorousFlowTestApp", EmptyReporter)
static InputParameters validParams()
Definition: EmptyReporter.C:15
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const ReporterMode REPORTER_MODE_REPLICATED