Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
podlesny
dune-tectonic
Commits
09e105ee
Commit
09e105ee
authored
12 years ago
by
Elias Pipping
Committed by
Elias Pipping
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make timeSteppingScheme cloneable
parent
82675edb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/timestepping.org
+26
-0
26 additions, 0 deletions
src/timestepping.org
with
26 additions
and
0 deletions
src/timestepping.org
+
26
−
0
View file @
09e105ee
...
...
@@ -26,6 +26,9 @@
void virtual postProcess(VectorType const &);
void virtual extractDisplacement(VectorType &) const;
void virtual extractVelocity(VectorType &) const;
virtual TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
clone();
#+end_src
#+name: dirichletCondition
#+begin_src c++
...
...
@@ -70,6 +73,9 @@
void virtual postProcess(VectorType const &problem_iterate) = 0;
void virtual extractDisplacement(VectorType &displacement) const = 0;
void virtual extractVelocity(VectorType &velocity) const = 0;
virtual TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
clone() = 0;
};
#+end_src
* TimeSteppingScheme: Implicit Euler
...
...
@@ -184,6 +190,12 @@
velocity = ud;
}
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);
}
#+end_src
* TimeSteppingScheme: Implicit Two-Step
#+begin_src latex :tangle twostep.tex :noweb yes
...
...
@@ -357,6 +369,13 @@
velocity = ud;
}
template <class VectorType, class MatrixType, class FunctionType, int dim>
TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
ImplicitTwoStep<VectorType, MatrixType, FunctionType, dim>::
clone() {
return new ImplicitTwoStep<VectorType, MatrixType, FunctionType, dim>(*this);
}
#+end_src
* TimeSteppingScheme: Newmark
#+begin_src latex :tangle newmark.tex :noweb yes
...
...
@@ -527,6 +546,13 @@
velocity = ud;
}
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);
}
#+end_src
* C++ code generation
#+begin_src c++ :tangle timestepping.hh :noweb yes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment