LCOV - code coverage report
Current view: top level - src/geomsearch - GeometricSearchInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 20 20 100.0 %
Date: 2025-07-17 01:28:37 Functions: 6 6 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 "GeometricSearchInterface.h"
      11             : 
      12             : // MOOSE includes
      13             : #include "GeometricSearchData.h"
      14             : #include "MooseObject.h"
      15             : #include "NearestNodeLocator.h"
      16             : #include "PenetrationLocator.h"
      17             : #include "SubProblem.h"
      18             : #include "SystemBase.h"
      19             : 
      20             : InputParameters
      21       57690 : GeometricSearchInterface::validParams()
      22             : {
      23       57690 :   return emptyInputParameters();
      24             : }
      25             : 
      26      277015 : GeometricSearchInterface::GeometricSearchInterface(const MooseObject * moose_object)
      27      277015 :   : _geometric_search_data(moose_object->parameters()
      28      554030 :                                .getCheckedPointerParam<SubProblem *>("_subproblem")
      29      277015 :                                ->geomSearchData()),
      30      277015 :     _requires_geometric_search(false)
      31             : {
      32      277015 : }
      33             : 
      34             : PenetrationLocator &
      35       12585 : GeometricSearchInterface::getPenetrationLocator(const BoundaryName & primary,
      36             :                                                 const BoundaryName & secondary,
      37             :                                                 Order order)
      38             : {
      39       12585 :   _requires_geometric_search = true;
      40       12585 :   return _geometric_search_data.getPenetrationLocator(primary, secondary, order);
      41             : }
      42             : 
      43             : PenetrationLocator &
      44         120 : GeometricSearchInterface::getQuadraturePenetrationLocator(const BoundaryName & primary,
      45             :                                                           const BoundaryName & secondary,
      46             :                                                           Order order)
      47             : {
      48         120 :   _requires_geometric_search = true;
      49         120 :   return _geometric_search_data.getQuadraturePenetrationLocator(primary, secondary, order);
      50             : }
      51             : 
      52             : NearestNodeLocator &
      53          78 : GeometricSearchInterface::getNearestNodeLocator(const BoundaryName & primary,
      54             :                                                 const BoundaryName & secondary)
      55             : {
      56          78 :   _requires_geometric_search = true;
      57          78 :   return _geometric_search_data.getNearestNodeLocator(primary, secondary);
      58             : }
      59             : 
      60             : NearestNodeLocator &
      61          26 : GeometricSearchInterface::getQuadratureNearestNodeLocator(const BoundaryName & primary,
      62             :                                                           const BoundaryName & secondary)
      63             : {
      64          26 :   _requires_geometric_search = true;
      65          26 :   return _geometric_search_data.getQuadratureNearestNodeLocator(primary, secondary);
      66             : }

Generated by: LCOV version 1.14