LCOV - code coverage report
Current view: top level - src/ics - TriInterWrapperBaseIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #31405 (292dce) with base fef103 Lines: 9 10 90.0 %
Date: 2025-09-04 07:58:06 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://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 "TriInterWrapperBaseIC.h"
      11             : #include "TriInterWrapperMesh.h"
      12             : #include "FEProblemBase.h"
      13             : 
      14             : InputParameters
      15         160 : TriInterWrapperBaseIC::validParams()
      16             : {
      17         160 :   return InitialCondition::validParams();
      18             : }
      19             : 
      20         123 : TriInterWrapperBaseIC::TriInterWrapperBaseIC(const InputParameters & params)
      21         123 :   : InitialCondition(params), _mesh(getMesh(_fe_problem.mesh()))
      22             : {
      23         123 : }
      24             : 
      25             : TriInterWrapperMesh &
      26         123 : TriInterWrapperBaseIC::getMesh(MooseMesh & mesh)
      27             : {
      28         123 :   TriInterWrapperMesh * m = dynamic_cast<TriInterWrapperMesh *>(&mesh);
      29         123 :   if (m)
      30         123 :     return dynamic_cast<TriInterWrapperMesh &>(mesh);
      31             :   else
      32           0 :     mooseError(name(),
      33             :                ": This initial condition works only with triangular subchannel geometry. Update "
      34             :                "your input file to use TriInterWrapperMesh in the mesh block.");
      35             : }

Generated by: LCOV version 1.14