Skip to content
Snippets Groups Projects
Commit 1891dc05 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Get rid of some typedefs

parent 7b69021f
No related branches found
No related tags found
No related merge requests found
...@@ -260,27 +260,23 @@ int main(int argc, char *argv[]) { ...@@ -260,27 +260,23 @@ int main(int argc, char *argv[]) {
VectorType *u_old_old_ptr = (run == 1) ? nullptr : &u_old_old; VectorType *u_old_old_ptr = (run == 1) ? nullptr : &u_old_old;
typedef TimeSteppingScheme<VectorType, MatrixType, Dune::shared_ptr<TimeSteppingScheme<VectorType, MatrixType,
decltype(dirichletFunction), decltype(dirichletFunction), dim>>
dim> TimeSteppingSchemeType; timeSteppingScheme;
Dune::shared_ptr<TimeSteppingSchemeType> timeSteppingScheme;
{ {
typedef ImplicitEuler<VectorType, MatrixType,
decltype(dirichletFunction), dim> IE;
typedef ImplicitTwoStep<VectorType, MatrixType,
decltype(dirichletFunction), dim> ITS;
switch (parset.get<Config::scheme>("timeSteppingScheme")) { switch (parset.get<Config::scheme>("timeSteppingScheme")) {
case Config::ImplicitTwoStep: case Config::ImplicitTwoStep:
if (run != 1) { if (run != 1) {
timeSteppingScheme = Dune::make_shared<ITS>( timeSteppingScheme = Dune::make_shared<ImplicitTwoStep<
VectorType, MatrixType, decltype(dirichletFunction), dim>>(
ell, stiffnessMatrix, u_old, u_old_old_ptr, ignoreNodes, ell, stiffnessMatrix, u_old, u_old_old_ptr, ignoreNodes,
dirichletFunction, time, tau); dirichletFunction, time, tau);
break; break;
} }
// Fall through // Fall through
case Config::ImplicitEuler: case Config::ImplicitEuler:
timeSteppingScheme = Dune::make_shared<IE>( timeSteppingScheme = Dune::make_shared<ImplicitEuler<
VectorType, MatrixType, decltype(dirichletFunction), dim>>(
ell, stiffnessMatrix, u_old, u_old_old_ptr, ignoreNodes, ell, stiffnessMatrix, u_old, u_old_old_ptr, ignoreNodes,
dirichletFunction, time, tau); dirichletFunction, time, tau);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment