Forked from
agnumpde / dune-tectonic
1140 commits behind the upstream repository.
-
Elias Pipping authoredElias Pipping authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
myconvexproblem.hh 1019 B
// Based on dune/tnnmg/problem-classes/convexproblem.hh
#ifndef MY_CONVEX_PROBLEM_HH
#define MY_CONVEX_PROBLEM_HH
#include "globalnonlinearity.hh"
template <class MatrixTypeTEMPLATE, class VectorTypeTEMPLATE>
class MyConvexProblem {
public:
typedef VectorTypeTEMPLATE VectorType;
typedef MatrixTypeTEMPLATE MatrixType;
typedef typename VectorType::block_type LocalVectorType;
typedef typename MatrixType::block_type LocalMatrixType;
static const int block_size = VectorType::block_type::dimension;
/** \brief Constructor with the problem components
\param A The matrix of the quadratic part
\param f The linear functional
\param u The solution vector
*/
MyConvexProblem(MatrixType const &A,
Dune::GlobalNonlinearity<block_size> const &phi,
VectorType const &f, VectorType &u)
: A(A), phi(phi), f(f), u(u) {};
MatrixType const &A;
Dune::GlobalNonlinearity<block_size> const φ
VectorType const &f;
VectorType &u;
};
#endif