LCOV - code coverage report
Current view: top level - src/actions - AddExternalAuxVariableAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 10 100.0 %
Date: 2025-07-17 01:28:37 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 "AddExternalAuxVariableAction.h"
      11             : #include "ExternalProblem.h"
      12             : 
      13             : registerMooseAction("MooseApp", AddExternalAuxVariableAction, "add_external_aux_variables");
      14             : 
      15             : InputParameters
      16       61934 : AddExternalAuxVariableAction::validParams()
      17             : {
      18       61934 :   return Action::validParams();
      19             : }
      20             : 
      21       61934 : AddExternalAuxVariableAction::AddExternalAuxVariableAction(const InputParameters & params)
      22       61934 :   : Action(params)
      23             : {
      24       61934 : }
      25             : 
      26             : void
      27       57573 : AddExternalAuxVariableAction::act()
      28             : {
      29       57573 :   auto external_problem_ptr = std::dynamic_pointer_cast<ExternalProblem>(_problem);
      30             : 
      31       57573 :   if (external_problem_ptr)
      32         178 :     external_problem_ptr->addExternalVariables();
      33       57573 : }

Generated by: LCOV version 1.14