LCOV - code coverage report
Current view: top level - src/kernels - MyTRIMElementHeatSource.C (source / functions) Hit Total Coverage
Test: idaholab/magpie: 5710af Lines: 8 8 100.0 %
Date: 2025-07-21 23:34:39 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /**********************************************************************/
       2             : /*                     DO NOT MODIFY THIS HEADER                      */
       3             : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */
       4             : /*                                                                    */
       5             : /*            Copyright 2017 Battelle Energy Alliance, LLC            */
       6             : /*                        ALL RIGHTS RESERVED                         */
       7             : /**********************************************************************/
       8             : 
       9             : #include "MyTRIMElementHeatSource.h"
      10             : #include "MyTRIMElementRun.h"
      11             : 
      12             : registerMooseObject("MagpieApp", MyTRIMElementHeatSource);
      13             : 
      14             : InputParameters
      15           9 : MyTRIMElementHeatSource::validParams()
      16             : {
      17           9 :   InputParameters params = MyTRIMElementEnergyAccess<Kernel>::validParams();
      18           9 :   return params;
      19             : }
      20             : 
      21           5 : MyTRIMElementHeatSource::MyTRIMElementHeatSource(const InputParameters & parameters)
      22           5 :   : MyTRIMElementEnergyAccess<Kernel>(parameters), _dt(_fe_problem.dt())
      23             : {
      24           5 : }
      25             : 
      26             : Real
      27     4960000 : MyTRIMElementHeatSource::computeQpResidual()
      28             : {
      29     4960000 :   return -getEnergyDensity() / _dt * _test[_i][_qp];
      30             : }

Generated by: LCOV version 1.14