LCOV - code coverage report
Current view: top level - src/transfers - SCMPinSolutionTransfer.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
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 "SCMPinSolutionTransfer.h"
      11             : #include "SubChannelMesh.h"
      12             : 
      13             : registerMooseObject("SubChannelApp", SCMPinSolutionTransfer);
      14             : registerMooseObjectRenamed("SubChannelApp",
      15             :                            PinSolutionTransfer,
      16             :                            "06/30/2025 24:00",
      17             :                            SCMPinSolutionTransfer);
      18             : 
      19             : InputParameters
      20          32 : SCMPinSolutionTransfer::validParams()
      21             : {
      22          32 :   InputParameters params = SCMSolutionTransferBase::validParams();
      23          32 :   params.addClassDescription(
      24             :       "Transfers pin solution from computational mesh onto visualization mesh");
      25          32 :   return params;
      26           0 : }
      27             : 
      28          16 : SCMPinSolutionTransfer::SCMPinSolutionTransfer(const InputParameters & parameters)
      29          16 :   : SCMSolutionTransferBase(parameters)
      30             : {
      31          16 : }
      32             : 
      33             : Node *
      34      156914 : SCMPinSolutionTransfer::getFromNode(const SubChannelMesh & from_mesh, const Point & src_node)
      35             : {
      36      156914 :   unsigned int pin_idx = from_mesh.pinIndex(src_node);
      37      156914 :   unsigned iz = from_mesh.getZIndex(src_node);
      38      156914 :   return from_mesh.getPinNode(pin_idx, iz);
      39             : }

Generated by: LCOV version 1.14