https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ParallelAcquisitionInterface.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://www.mooseframework.org
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
17
19 : _parallelacquisition_feproblem(*parameters.get<FEProblemBase *>("_fe_problem_base"))
20{
21}
22
25 const UserObjectName & name) const
26{
27 std::vector<ParallelAcquisitionFunctionBase *> models;
29 .query()
30 .condition<AttribName>(name)
31 .condition<AttribSystem>("ParallelAcquisitionFunctionBase")
32 .queryInto(models);
33
34 if (models.empty())
35 mooseError("Unable to find a ParallelAcquisitionFunction object with the name '" + name + "'");
36
37 return *models.front();
38}
InputParameters emptyInputParameters()
void mooseError(Args &&... args)
const std::string name
Definition Setup.h:21
TheWarehouse & theWarehouse() const
All ParallelAcquisition functions should inherit from this class.
FEProblemBase & _parallelacquisition_feproblem
Reference to FEProblemBase instance.
ParallelAcquisitionFunctionBase & getParallelAcquisitionFunctionByName(const UserObjectName &name) const
Lookup a ParallelAcquisitionFunction object by name and return pointer.
ParallelAcquisitionInterface(const InputParameters &parameters)
Query query()