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

TimeStepping: kill clone()

parent d358214e
No related branches found
No related tags found
No related merge requests found
......@@ -94,11 +94,6 @@ void ImplicitEuler<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
velocity = v;
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
ImplicitEuler<VectorType, MatrixType, FunctionType, dim>::clone() {
return new ImplicitEuler<VectorType, MatrixType, FunctionType, dim>(*this);
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
Newmark<VectorType, MatrixType, FunctionType, dim>::Newmark(
MatrixType const &_A, MatrixType const &_B, VectorType const &_u_initial,
......@@ -204,11 +199,6 @@ void Newmark<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
velocity = v;
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
Newmark<VectorType, MatrixType, FunctionType, dim>::clone() {
return new Newmark<VectorType, MatrixType, FunctionType, dim>(*this);
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
EulerPair<VectorType, MatrixType, FunctionType, dim>::EulerPair(
MatrixType const &_A, MatrixType const &_B, VectorType const &_u_initial,
......@@ -304,10 +294,4 @@ void EulerPair<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
velocity = v;
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
EulerPair<VectorType, MatrixType, FunctionType, dim>::clone() {
return new EulerPair<VectorType, MatrixType, FunctionType, dim>(*this);
}
#include "timestepping_tmpl.cc"
......@@ -14,9 +14,6 @@ class TimeSteppingScheme {
void virtual postProcess(VectorType const &problem_iterate) = 0;
void virtual extractDisplacement(VectorType &displacement) const = 0;
void virtual extractVelocity(VectorType &velocity) const = 0;
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *
clone() = 0;
};
template <class VectorType, class MatrixType, class FunctionType, int dim>
......@@ -35,9 +32,6 @@ class ImplicitEuler
void virtual extractDisplacement(VectorType &) const override;
void virtual extractVelocity(VectorType &) const override;
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
override;
private:
MatrixType const &A;
VectorType u;
......@@ -70,9 +64,6 @@ class Newmark
void virtual extractDisplacement(VectorType &) const override;
void virtual extractVelocity(VectorType &) const override;
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
override;
private:
MatrixType const &A;
MatrixType const &B;
......@@ -107,9 +98,6 @@ class EulerPair
void virtual extractDisplacement(VectorType &) const override;
void virtual extractVelocity(VectorType &) const override;
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
override;
private:
MatrixType const &A;
MatrixType const &B;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment