OGS
SourceTerm.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <memory>
14
17
18namespace ProcessLib
19{
21{
22public:
23 explicit SourceTerm(
24 std::unique_ptr<NumLib::LocalToGlobalIndexMap> source_term_dof_table)
25 : _source_term_dof_table{std::move(source_term_dof_table)}
26 {
27 }
28
29 virtual void integrate(const double t, GlobalVector const& x,
30 GlobalVector& b, GlobalMatrix* jac) const = 0;
31
32 virtual ~SourceTerm() = default;
33
34protected:
35 std::unique_ptr<NumLib::LocalToGlobalIndexMap> const _source_term_dof_table;
36};
37
38} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
virtual void integrate(const double t, GlobalVector const &x, GlobalVector &b, GlobalMatrix *jac) const =0
virtual ~SourceTerm()=default
SourceTerm(std::unique_ptr< NumLib::LocalToGlobalIndexMap > source_term_dof_table)
Definition SourceTerm.h:23
std::unique_ptr< NumLib::LocalToGlobalIndexMap > const _source_term_dof_table
Definition SourceTerm.h:35