LCOV - code coverage report
Current view: top level - src/mfem/problem_operators - EquationSystemProblemOperator.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: fa5e60 Lines: 15 15 100.0 %
Date: 2026-06-24 08:03: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             : #ifdef MOOSE_MFEM_ENABLED
      11             : 
      12             : #include "EquationSystemProblemOperator.h"
      13             : 
      14             : namespace Moose::MFEM
      15             : {
      16             : void
      17        1082 : EquationSystemProblemOperator::SetGridFunctions()
      18             : {
      19        1082 :   _trial_var_names = GetEquationSystem()->GetTrialVarNames();
      20        1082 :   _test_var_names = GetEquationSystem()->GetTestVarNames();
      21        1082 :   ProblemOperator::SetGridFunctions();
      22        1082 : }
      23             : 
      24             : void
      25         769 : EquationSystemProblemOperator::Solve()
      26             : {
      27         769 :   BuildEquationSystemOperator();
      28             : 
      29         769 :   auto * const es = GetEquationSystem();
      30         769 :   SolveWithOperator(*es, _true_rhs, _true_x);
      31             : 
      32         769 :   es->SetTrialVariablesFromTrueVectors(_true_x);
      33         769 : }
      34             : 
      35             : void
      36         811 : EquationSystemProblemOperator::BuildEquationSystemOperator()
      37             : {
      38         811 :   GetEquationSystem()->BuildEquationSystem();
      39         811 :   GetEquationSystem()->FormSystem(_true_x, _true_rhs);
      40         811 : }
      41             : 
      42             : } // namespace Moose::MFEM
      43             : 
      44             : #endif

Generated by: LCOV version 1.14