22#ifndef EXADG_CONVECTION_DIFFUSION_TIME_INTEGRATION_CREATE_TIME_INTEGRATOR_H_
23#define EXADG_CONVECTION_DIFFUSION_TIME_INTEGRATION_CREATE_TIME_INTEGRATOR_H_
26#include <exadg/convection_diffusion/time_integration/time_int_bdf.h>
27#include <exadg/convection_diffusion/time_integration/time_int_explicit_runge_kutta.h>
28#include <exadg/convection_diffusion/user_interface/parameters.h>
37template<
int dim,
typename Number>
38std::shared_ptr<TimeIntBase>
40 std::shared_ptr<HelpersALE<dim, Number>
const> helpers_ale,
43 MPI_Comm
const & mpi_comm,
46 std::shared_ptr<TimeIntBase> time_integrator;
48 if(parameters.temporal_discretization == TemporalDiscretization::ExplRK)
50 time_integrator = std::make_shared<TimeIntExplRK<Number>>(
51 pde_operator, postprocessor, parameters, mpi_comm, is_test);
53 else if(parameters.temporal_discretization == TemporalDiscretization::BDF)
55 time_integrator = std::make_shared<TimeIntBDF<dim, Number>>(
56 pde_operator, helpers_ale, postprocessor, parameters, mpi_comm, is_test);
60 AssertThrow(parameters.temporal_discretization == TemporalDiscretization::ExplRK or
61 parameters.temporal_discretization == TemporalDiscretization::BDF,
62 dealii::ExcMessage(
"Specified time integration scheme is not implemented!"));
65 return time_integrator;
Definition parameters.h:46
Definition postprocessor_base.h:44