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 "LinearTimeIntegratorInterface.h" 11 : #include "FEProblem.h" 12 : #include "LinearSystem.h" 13 : 14 : #include "libmesh/linear_implicit_system.h" 15 : 16 57042 : LinearTimeIntegratorInterface::LinearTimeIntegratorInterface(SystemBase & system) 17 57042 : : _linear_system(dynamic_cast<LinearSystem *>(&system)), 18 57042 : _linear_implicit_system( 19 114084 : _linear_system ? dynamic_cast<LinearImplicitSystem *>(&_linear_system->system()) : nullptr) 20 : { 21 57042 : } 22 : 23 : Real 24 0 : LinearTimeIntegratorInterface::timeDerivativeRHSContribution( 25 : const dof_id_type /*dof_id*/, const std::vector<Real> & /*factors*/) const 26 : { 27 0 : mooseError("The time derivative right hand side contribution has not been implemented yet", 28 0 : _linear_system ? " for time integrator of system " + _linear_system->name() : "", 29 : "!"); 30 : } 31 : 32 : Real 33 0 : LinearTimeIntegratorInterface::timeDerivativeMatrixContribution(const Real /*factor*/) const 34 : { 35 0 : mooseError("The time derivative matrix contribution has not been implemented yet", 36 0 : _linear_system ? " for time integrator of system " + _linear_system->name() : "", 37 : "!"); 38 : }