LCOV - code coverage report
Current view: top level - src/timeintegrators - NonlinearTimeIntegratorInterface.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31706 (f8ed4a) with base bb0a08 Lines: 14 14 100.0 %
Date: 2025-11-03 17:23:24 Functions: 2 2 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 "NonlinearTimeIntegratorInterface.h"
      11             : #include "FEProblem.h"
      12             : #include "NonlinearSystemBase.h"
      13             : 
      14             : #include "libmesh/nonlinear_implicit_system.h"
      15             : #include "libmesh/nonlinear_solver.h"
      16             : #include "libmesh/dof_map.h"
      17             : 
      18       64160 : NonlinearTimeIntegratorInterface::NonlinearTimeIntegratorInterface(FEProblemBase & problem,
      19       64160 :                                                                    SystemBase & system)
      20       64160 :   : _nl(dynamic_cast<NonlinearSystemBase *>(&system)),
      21       64160 :     _nonlinear_implicit_system(_nl ? dynamic_cast<NonlinearImplicitSystem *>(&_nl->system())
      22             :                                    : nullptr),
      23       64160 :     _Re_time(_nl ? &_nl->getResidualTimeVector() : nullptr),
      24       64160 :     _Re_non_time(_nl ? &_nl->getResidualNonTimeVector() : nullptr),
      25       64160 :     _u_dot_factor_tag(problem.addVectorTag(Moose::SOLUTION_DOT_TAG, Moose::VECTOR_TAG_SOLUTION)),
      26       64160 :     _u_dotdot_factor_tag(
      27      128320 :         problem.addVectorTag(Moose::SOLUTION_DOTDOT_TAG, Moose::VECTOR_TAG_SOLUTION))
      28             : {
      29       64160 : }
      30             : 
      31             : NumericVector<Number> *
      32        5662 : NonlinearTimeIntegratorInterface::addVector(const std::string & name,
      33             :                                             const bool project,
      34             :                                             const libMesh::ParallelType type)
      35             : {
      36        5662 :   if (_nl)
      37        2831 :     return &_nl->addVector(name, project, type);
      38             :   else
      39        2831 :     return nullptr;
      40             : }

Generated by: LCOV version 1.14