LCOV - code coverage report
Current view: top level - src/ics - BndsCalcIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:55:36 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 "BndsCalcIC.h"
      11             : #include "BndsCalculator.h"
      12             : 
      13             : registerMooseObject("PhaseFieldApp", BndsCalcIC);
      14             : 
      15             : InputParameters
      16          56 : BndsCalcIC::validParams()
      17             : {
      18          56 :   InputParameters params = InitialCondition::validParams();
      19          56 :   params.addClassDescription(
      20             :       "Initialize the location of grain boundaries in a polycrystalline sample");
      21         112 :   params.addRequiredCoupledVarWithAutoBuild(
      22             :       "v", "var_name_base", "op_num", "Array of coupled variables");
      23          56 :   return params;
      24           0 : }
      25             : 
      26          30 : BndsCalcIC::BndsCalcIC(const InputParameters & parameters)
      27          30 :   : InitialCondition(parameters), _op_num(coupledComponents("v")), _vals(coupledValues("v"))
      28             : {
      29          30 : }
      30             : 
      31             : Real
      32      281920 : BndsCalcIC::value(const Point & /*p*/)
      33             : {
      34      281920 :   return BndsCalculator::computeBndsVariable(_vals, _qp);
      35             : }

Generated by: LCOV version 1.14