Line data Source code
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 : 10 : #include "ParallelAcquisitionInterface.h" 11 : 12 : InputParameters 13 96 : ParallelAcquisitionInterface::validParams() 14 : { 15 96 : return emptyInputParameters(); 16 : } 17 : 18 48 : ParallelAcquisitionInterface::ParallelAcquisitionInterface(const InputParameters & parameters) 19 48 : : _parallelacquisition_feproblem(*parameters.get<FEProblemBase *>("_fe_problem_base")) 20 : { 21 48 : } 22 : 23 : ParallelAcquisitionFunctionBase & 24 48 : ParallelAcquisitionInterface::getParallelAcquisitionFunctionByName( 25 : const UserObjectName & name) const 26 : { 27 : std::vector<ParallelAcquisitionFunctionBase *> models; 28 48 : _parallelacquisition_feproblem.theWarehouse() 29 48 : .query() 30 48 : .condition<AttribName>(name) 31 48 : .condition<AttribSystem>("ParallelAcquisitionFunctionBase") 32 : .queryInto(models); 33 : 34 48 : if (models.empty()) 35 0 : mooseError("Unable to find a ParallelAcquisitionFunction object with the name '" + name + "'"); 36 : 37 48 : return *models.front(); 38 48 : }