https://mooseframework.inl.gov
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 
14 {
15  return emptyInputParameters();
16 }
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 }
void mooseError(Args &&... args)
ParallelAcquisitionFunctionBase & getParallelAcquisitionFunctionByName(const UserObjectName &name) const
Lookup a ParallelAcquisitionFunction object by name and return pointer.
All ParallelAcquisition functions should inherit from this class.
FEProblemBase & _parallelacquisition_feproblem
Reference to FEProblemBase instance.
InputParameters emptyInputParameters()
TheWarehouse & theWarehouse() const
const std::string name
Definition: Setup.h:21
ParallelAcquisitionInterface(const InputParameters &parameters)
Query query()
const Elem & get(const ElemType type_in)