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