LCOV - code coverage report
Current view: top level - src/userobjects - SlopeReconstructionMultiD.C (source / functions) Hit Total Coverage
Test: idaholab/moose rdg: #31405 (292dce) with base fef103 Lines: 0 18 0.0 %
Date: 2025-09-04 07:56:15 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       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 "SlopeReconstructionMultiD.h"
      11             : 
      12             : InputParameters
      13           0 : SlopeReconstructionMultiD::validParams()
      14             : {
      15           0 :   InputParameters params = SlopeReconstructionBase::validParams();
      16             : 
      17           0 :   params.addRequiredParam<std::vector<BoundaryName>>("boundary_list", "List of boundary IDs");
      18             : 
      19           0 :   params.addRequiredParam<std::vector<UserObjectName>>(
      20             :       "boundary_condition_user_object_list", "List of boundary condition user object names");
      21             : 
      22           0 :   return params;
      23           0 : }
      24             : 
      25           0 : SlopeReconstructionMultiD::SlopeReconstructionMultiD(const InputParameters & parameters)
      26           0 :   : SlopeReconstructionBase(parameters)
      27             : {
      28           0 :   const std::vector<BoundaryName> & bnd_name = getParam<std::vector<BoundaryName>>("boundary_list");
      29             : 
      30             :   const std::vector<UserObjectName> & bc_uo_name =
      31           0 :       getParam<std::vector<UserObjectName>>("boundary_condition_user_object_list");
      32             : 
      33           0 :   if (bnd_name.size() != bc_uo_name.size())
      34           0 :     mooseError("Number of boundaries NOT equal to number of BCUserObject names:",
      35             :                "\nNumber of boundaries is ",
      36           0 :                bnd_name.size(),
      37             :                "\nNumber of BCUserObject is ",
      38           0 :                bc_uo_name.size());
      39             : 
      40           0 :   for (unsigned int i = 0; i < bnd_name.size(); i++)
      41             :   {
      42           0 :     BoundaryID bnd_id = _mesh.getBoundaryID(bnd_name[i]);
      43             : 
      44           0 :     _bnd_uo_name_map.insert(std::pair<BoundaryID, UserObjectName>(bnd_id, bc_uo_name[i]));
      45             :   }
      46           0 : }

Generated by: LCOV version 1.14