LCOV - code coverage report
Current view: top level - src/kernels - ADLaplacianSplit.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31706 (f8ed4a) with base bb0a08 Lines: 10 11 90.9 %
Date: 2025-11-03 17:26:54 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://www.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 "ADLaplacianSplit.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADLaplacianSplit);
      13             : 
      14             : InputParameters
      15         885 : ADLaplacianSplit::validParams()
      16             : {
      17         885 :   InputParameters params = ADKernelGrad::validParams();
      18         885 :   params.addClassDescription(
      19             :       "Split with a variable that holds the Laplacian of a phase field variable.");
      20        1770 :   params.addRequiredCoupledVar("c", "Field variable to take the Laplacian of");
      21         885 :   return params;
      22           0 : }
      23             : 
      24         468 : ADLaplacianSplit::ADLaplacianSplit(const InputParameters & parameters)
      25         468 :   : ADKernelGrad(parameters), _var_c(adCoupledValue("c")), _grad_c(adCoupledGradient("c"))
      26             : {
      27         468 : }
      28             : 
      29             : ADRealGradient
      30    45221676 : ADLaplacianSplit::precomputeQpResidual()
      31             : {
      32    45221676 :   return _grad_c[_qp]; // * _grad_test[_i][_qp]
      33             : }

Generated by: LCOV version 1.14