LCOV - code coverage report
Current view: top level - src/interfaces - ParallelAcquisitionInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose stochastic_tools: #32971 (54bef8) with base c6cf66 Lines: 13 14 92.9 %
Date: 2026-05-29 20:40:35 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          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 : }

Generated by: LCOV version 1.14