From: Baerbel Jannsen Date: Fri, 2 Jul 2010 13:47:18 +0000 (+0000) Subject: some SmartPointers needed a second template. wrote the function ste_output in ThetaTi... X-Git-Tag: v8.0.0~5859 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c74457a1abd7e752591799b8f7db4ba18aa19e6;p=dealii.git some SmartPointers needed a second template. wrote the function ste_output in ThetaTimestepping git-svn-id: https://svn.dealii.org/trunk@21444 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/numerics/theta_timestepping.h b/deal.II/deal.II/include/numerics/theta_timestepping.h index b1d3c21129..0988553774 100644 --- a/deal.II/deal.II/include/numerics/theta_timestepping.h +++ b/deal.II/deal.II/include/numerics/theta_timestepping.h @@ -37,7 +37,7 @@ namespace Algorithms { /// The current time double time; -/// The current step size +/// The current step size times something double step; }; @@ -244,7 +244,7 @@ namespace Algorithms * c is the time step * size in explicit_data(). */ - SmartPointer > op_explicit; + SmartPointer, ThetaTimestepping > op_explicit; /** * The operator solving the @@ -268,13 +268,13 @@ namespace Algorithms * c is the time step * size in explicit_data(). */ - SmartPointer > op_implicit; + SmartPointer, ThetaTimestepping > op_implicit; /** * The operator writing the * output in each time step */ - SmartPointer > output; + SmartPointer, ThetaTimestepping > output; }; @@ -295,6 +295,12 @@ namespace Algorithms return d_implicit; } + template + inline + void ThetaTimestepping::set_output (OutputOperator& out) + { + output = &out; + } } DEAL_II_NAMESPACE_CLOSE