LCOV - code coverage report
Current view: top level - src/efa - EFAVolumeNode.C (source / functions) Hit Total Coverage
Test: idaholab/moose xfem: #31405 (292dce) with base fef103 Lines: 0 25 0.0 %
Date: 2025-09-04 07:58:55 Functions: 0 6 0.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 "EFAVolumeNode.h"
      11             : 
      12             : #include "EFANode.h"
      13             : #include "EFAError.h"
      14             : 
      15           0 : EFAVolumeNode::EFAVolumeNode(EFANode * node, double xi, double eta, double zeta)
      16           0 :   : _node(node), _xi(xi), _eta(eta), _zeta(zeta)
      17             : {
      18           0 : }
      19             : 
      20           0 : EFAVolumeNode::EFAVolumeNode(const EFAVolumeNode & other_vol_node)
      21           0 :   : _node(other_vol_node._node),
      22           0 :     _xi(other_vol_node._xi),
      23           0 :     _eta(other_vol_node._eta),
      24           0 :     _zeta(other_vol_node._zeta)
      25             : {
      26           0 : }
      27             : 
      28           0 : EFAVolumeNode::~EFAVolumeNode() {}
      29             : 
      30             : EFANode *
      31           0 : EFAVolumeNode::getNode()
      32             : {
      33           0 :   return _node;
      34             : }
      35             : 
      36             : double
      37           0 : EFAVolumeNode::getParametricCoordinates(unsigned int i)
      38             : {
      39             :   double coord = -100.0;
      40           0 :   if (i == 0)
      41           0 :     coord = _xi;
      42           0 :   else if (i == 1)
      43           0 :     coord = _eta;
      44           0 :   else if (i == 2)
      45           0 :     coord = _zeta;
      46             :   else
      47           0 :     EFAError("in getParametricCoordinates: input out of bounds");
      48             : 
      49           0 :   return coord;
      50             : }
      51             : 
      52             : void
      53           0 : EFAVolumeNode::switchNode(EFANode * new_node, EFANode * old_node)
      54             : {
      55           0 :   if (_node == old_node)
      56           0 :     _node = new_node;
      57           0 : }

Generated by: LCOV version 1.14