1#ifndef DUNE_PDELAB_GRIDOPERATOR_ONESTEP_JACOBIANENGINE_HH
2#define DUNE_PDELAB_GRIDOPERATOR_ONESTEP_JACOBIANENGINE_HH
4#include <dune/pdelab/gridoperator/onestep/enginebase.hh>
17 template<
typename OSLA>
20 typename OSLA::LocalAssemblerDT0::LocalJacobianAssemblerEngine,
21 typename OSLA::LocalAssemblerDT1::LocalJacobianAssemblerEngine
26 typename OSLA::LocalAssemblerDT0::LocalJacobianAssemblerEngine,
27 typename OSLA::LocalAssemblerDT1::LocalJacobianAssemblerEngine
33 using BaseT::implicit;
34 using BaseT::setLocalAssemblerEngineDT0;
35 using BaseT::setLocalAssemblerEngineDT1;
40 typedef typename OSLA::LocalAssemblerDT0 LocalAssemblerDT0;
41 typedef typename OSLA::LocalAssemblerDT1 LocalAssemblerDT1;
43 typedef typename LocalAssemblerDT0::LocalJacobianAssemblerEngine JacobianEngineDT0;
44 typedef typename LocalAssemblerDT1::LocalJacobianAssemblerEngine JacobianEngineDT1;
47 typedef typename OSLA::Traits::Jacobian
Jacobian;
50 typedef typename OSLA::Traits::Solution
Solution;
53 typedef typename OSLA::Real
Real;
62 :
BaseT(local_assembler_),
63 invalid_jacobian(nullptr),
64 invalid_solution(nullptr),
65 jacobian(invalid_jacobian), solution(invalid_solution)
73 solution = &solution_;
80 jacobian = &jacobian_;
82 assert(solution != invalid_solution);
85 setLocalAssemblerEngineDT0(la.la0.localJacobianAssemblerEngine(*jacobian,*solution));
86 setLocalAssemblerEngineDT1(la.la1.localJacobianAssemblerEngine(*jacobian,*solution));
94 la.la0.setWeight(b_rr * la.dt_factor0);
95 la.la1.setWeight(la.dt_factor1);
106 b_rr = la.osp_method->b(la.stage,la.stage);
107 d_r = la.osp_method->d(la.stage);
111 implicit = abs(b_rr) > 1e-6;
114 la.la0.setTime(la.time + d_r * la.dt);
115 la.la1.setTime(la.time + d_r * la.dt);
120 template<
typename GFSU,
typename GFSV>
121 void postAssembly(
const GFSU& gfsu,
const GFSV& gfsv)
123 lae0->postAssembly(gfsu,gfsv);
124 lae1->postAssembly(gfsu,gfsv);
The local assembler engine for UDG sub triangulations which assembles the residual vector.
Definition: enginebase.hh:16
const LocalAssembler & la
Definition: enginebase.hh:472
The local assembler engine for one step methods which assembles the residual vector.
Definition: jacobianengine.hh:23
OSLA LocalAssembler
The type of the wrapping local assembler.
Definition: jacobianengine.hh:38
void setJacobian(Jacobian &jacobian_)
Definition: jacobianengine.hh:78
void setSolution(const Solution &solution_)
Definition: jacobianengine.hh:71
OSLA::Real Real
The type for real numbers.
Definition: jacobianengine.hh:53
void setWeights()
Definition: jacobianengine.hh:92
OSLA::Traits::Solution Solution
The type of the solution vector.
Definition: jacobianengine.hh:50
void preAssembly()
Definition: jacobianengine.hh:100
OSLA::Traits::Jacobian Jacobian
The type of the residual vector.
Definition: jacobianengine.hh:47
OneStepLocalJacobianAssemblerEngine(const LocalAssembler &local_assembler_)
Constructor.
Definition: jacobianengine.hh:61
Dune namespace.
Definition: alignedallocator.hh:13