LCOV - code coverage report
Current view: top level - src/kernels - MyTRIMElementSource.C (source / functions) Hit Total Coverage
Test: idaholab/magpie: 5710af Lines: 0 11 0.0 %
Date: 2025-07-21 23:34:39 Functions: 0 3 0.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 "MyTRIMElementSource.h"
      10             : #include "MyTRIMElementRun.h"
      11             : 
      12             : registerMooseObject("MagpieApp", MyTRIMElementSource);
      13             : 
      14             : InputParameters
      15           0 : MyTRIMElementSource::validParams()
      16             : {
      17           0 :   InputParameters params = MyTRIMElementResultAccess<Kernel>::validParams();
      18           0 :   params.addParam<Real>("prefactor", 1.0, "Prefactor to scale the applied production rate");
      19           0 :   return params;
      20           0 : }
      21             : 
      22           0 : MyTRIMElementSource::MyTRIMElementSource(const InputParameters & parameters)
      23             :   : MyTRIMElementResultAccess<Kernel>(parameters),
      24           0 :     _prefactor(getParam<Real>("prefactor")),
      25           0 :     _trim_parameters(_rasterizer.getTrimParameters())
      26             : {
      27           0 : }
      28             : 
      29             : Real
      30           0 : MyTRIMElementSource::computeQpResidual()
      31             : {
      32           0 :   return -_prefactor * getDefectRate() / _trim_parameters.last_executed_dt * _test[_i][_qp];
      33             : }

Generated by: LCOV version 1.14