LCOV - code coverage report
Current view: top level - src/geomsearch - GeometricSearchInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 20 20 100.0 %
Date: 2025-08-08 20:01:16 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       57718 : GeometricSearchInterface::validParams()
      22             : {
      23       57718 :   return emptyInputParameters();
      24             : }
      25             : 
      26      296809 : GeometricSearchInterface::GeometricSearchInterface(const MooseObject * moose_object)
      27      296809 :   : _geometric_search_data(moose_object->parameters()
      28      593618 :                                .getCheckedPointerParam<SubProblem *>("_subproblem")
      29      296809 :                                ->geomSearchData()),
      30      296809 :     _requires_geometric_search(false)
      31             : {
      32      296809 : }
      33             : 
      34             : PenetrationLocator &
      35       13563 : GeometricSearchInterface::getPenetrationLocator(const BoundaryName & primary,
      36             :                                                 const BoundaryName & secondary,
      37             :                                                 Order order)
      38             : {
      39       13563 :   _requires_geometric_search = true;
      40       13563 :   return _geometric_search_data.getPenetrationLocator(primary, secondary, order);
      41             : }
      42             : 
      43             : PenetrationLocator &
      44         129 : GeometricSearchInterface::getQuadraturePenetrationLocator(const BoundaryName & primary,
      45             :                                                           const BoundaryName & secondary,
      46             :                                                           Order order)
      47             : {
      48         129 :   _requires_geometric_search = true;
      49         129 :   return _geometric_search_data.getQuadraturePenetrationLocator(primary, secondary, order);
      50             : }
      51             : 
      52             : NearestNodeLocator &
      53          84 : GeometricSearchInterface::getNearestNodeLocator(const BoundaryName & primary,
      54             :                                                 const BoundaryName & secondary)
      55             : {
      56          84 :   _requires_geometric_search = true;
      57          84 :   return _geometric_search_data.getNearestNodeLocator(primary, secondary);
      58             : }
      59             : 
      60             : NearestNodeLocator &
      61          28 : GeometricSearchInterface::getQuadratureNearestNodeLocator(const BoundaryName & primary,
      62             :                                                           const BoundaryName & secondary)
      63             : {
      64          28 :   _requires_geometric_search = true;
      65          28 :   return _geometric_search_data.getQuadratureNearestNodeLocator(primary, secondary);
      66             : }

Generated by: LCOV version 1.14