Skip to content
Snippets Groups Projects
Commit 1d037918 authored by Robert K's avatar Robert K
Browse files

use InstationaryFunction.

parent 54a4d20e
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ struct CheckPointingStepper : public AlgorithmBase< StepperTraits< GridImp, Prob
void step(TimeProviderType& tp, SolverMonitorType& monitor )
{
// do new projection
typedef Dune::Fem::TimeDependentFunction< InitialDataType > FunctionType;
typedef Dune::Fem::InstationaryFunction< InitialDataType, Dune::Fem::__InstationaryFunction::HoldReference > FunctionType;
FunctionType function( problem(), tp.time() );
Dune::Fem::L2Projection< FunctionType, DiscreteFunctionType > l2pro;
l2pro(function, solution_);
......@@ -239,7 +239,7 @@ struct CheckPointingStepper : public AlgorithmBase< StepperTraits< GridImp, Prob
{
L2ErrorNoComm< DiscreteFunctionType > l2norm;
// Compute L2 error of discretized solution ...
typedef Dune::Fem::TimeDependentFunction< InitialDataType > FunctionType;
typedef Dune::Fem::InstationaryFunction< InitialDataType, Dune::Fem::__InstationaryFunction::HoldReference > FunctionType;
FunctionType function( problem(), tp.time() );
return l2norm.norm( function, u );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment