LCOV - code coverage report
Current view: top level - src/transfers - SCMSolutionTransfer.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:40:47 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 "SCMSolutionTransfer.h"
      11             : #include "SubChannelMesh.h"
      12             : 
      13             : registerMooseObject("SubChannelApp", SCMSolutionTransfer);
      14             : 
      15             : InputParameters
      16         144 : SCMSolutionTransfer::validParams()
      17             : {
      18         144 :   InputParameters params = SCMSolutionTransferBase::validParams();
      19         144 :   params.addClassDescription(
      20             :       "Transfers subchannel solution from computational mesh onto visualization mesh");
      21         144 :   return params;
      22           0 : }
      23             : 
      24          72 : SCMSolutionTransfer::SCMSolutionTransfer(const InputParameters & parameters)
      25          72 :   : SCMSolutionTransferBase(parameters)
      26             : {
      27          72 : }
      28             : 
      29             : Node *
      30      976106 : SCMSolutionTransfer::getFromNode(const SubChannelMesh & from_mesh, const Point & src_node)
      31             : {
      32      976106 :   unsigned int sch_idx = from_mesh.channelIndex(src_node);
      33      976106 :   unsigned iz = from_mesh.getZIndex(src_node);
      34      976106 :   return from_mesh.getChannelNode(sch_idx, iz);
      35             : }

Generated by: LCOV version 1.14