https://mooseframework.inl.gov
LinearTimeIntegratorInterface.C
Go to the documentation of this file.
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 
11 #include "FEProblem.h"
12 #include "LinearSystem.h"
13 
14 #include "libmesh/linear_implicit_system.h"
15 
17  : _linear_system(dynamic_cast<LinearSystem *>(&system)),
18  _linear_implicit_system(
19  _linear_system ? dynamic_cast<LinearImplicitSystem *>(&_linear_system->system()) : nullptr)
20 {
21 }
22 
23 Real
25  const dof_id_type /*dof_id*/, const std::vector<Real> & /*factors*/) const
26 {
27  mooseError("The time derivative right hand side contribution has not been implemented yet",
28  _linear_system ? " for time integrator of system " + _linear_system->name() : "",
29  "!");
30 }
31 
32 Real
34 {
35  mooseError("The time derivative matrix contribution has not been implemented yet",
36  _linear_system ? " for time integrator of system " + _linear_system->name() : "",
37  "!");
38 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:302
LinearSystem * _linear_system
Pointer to the linear system, can happen that we dont have any.
virtual Real timeDerivativeMatrixContribution(const Real factor) const
The time derivative&#39;s contribution to the right hand side of a linear system.
Base class for a system (of equations)
Definition: SystemBase.h:84
virtual Real timeDerivativeRHSContribution(dof_id_type dof_id, const std::vector< Real > &factors={}) const
The time derivative&#39;s contribution to the right hand side of a linear system.
virtual const std::string & name() const
Definition: SystemBase.C:1330
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Linear system to be solved.
Definition: LinearSystem.h:35
uint8_t dof_id_type