LCOV - code coverage report
Current view: top level - src/transfers - InterWrapperSolutionTransfer.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 "InterWrapperSolutionTransfer.h"
      11             : #include "InterWrapperMesh.h"
      12             : 
      13             : registerMooseObject("SubChannelApp", InterWrapperSolutionTransfer);
      14             : 
      15             : InputParameters
      16          30 : InterWrapperSolutionTransfer::validParams()
      17             : {
      18          30 :   InputParameters params = InterWrapperSolutionTransferBase::validParams();
      19          30 :   params.addClassDescription(
      20             :       "Transfers Inter-Wrapper solution from computational mesh onto visualization mesh");
      21          30 :   return params;
      22           0 : }
      23             : 
      24          15 : InterWrapperSolutionTransfer::InterWrapperSolutionTransfer(const InputParameters & parameters)
      25          15 :   : InterWrapperSolutionTransferBase(parameters)
      26             : {
      27          15 : }
      28             : 
      29             : Node *
      30       38280 : InterWrapperSolutionTransfer::getFromNode(const InterWrapperMesh & from_mesh,
      31             :                                           const Point & src_node)
      32             : {
      33       38280 :   unsigned int sch_idx = from_mesh.channelIndex(src_node);
      34       38280 :   unsigned iz = from_mesh.getZIndex(src_node);
      35       38280 :   return from_mesh.getChannelNode(sch_idx, iz);
      36             : }

Generated by: LCOV version 1.14