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
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
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
agnumpde
dune-tectonic
Commits
4c09e7d5
Commit
4c09e7d5
authored
12 years ago
by
Elias Pipping
Committed by
Elias Pipping
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
eulerPair need not keep track of accelerations
parent
ccaf0fae
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/one-body-sample.cc
+2
-2
2 additions, 2 deletions
src/one-body-sample.cc
src/timestepping.cc
+1
-7
1 addition, 7 deletions
src/timestepping.cc
src/timestepping.hh
+0
-3
0 additions, 3 deletions
src/timestepping.hh
with
3 additions
and
12 deletions
src/one-body-sample.cc
+
2
−
2
View file @
4c09e7d5
...
...
@@ -106,8 +106,8 @@ initTimeStepper(Config::scheme scheme, FunctionType const &dirichletFunction,
case
Config
::
EulerPair
:
return
Dune
::
make_shared
<
EulerPair
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
massMatrix
,
u_initial
,
ud_initial
,
udd_initial
,
ignoreNodes
,
dirichletFunction
);
stiffnessMatrix
,
massMatrix
,
u_initial
,
ud_initial
,
ignoreNodes
,
dirichletFunction
);
}
}
template
<
class
SingletonVectorType
,
class
VectorType
>
...
...
This diff is collapsed.
Click to expand it.
src/timestepping.cc
+
1
−
7
View file @
4c09e7d5
...
...
@@ -212,20 +212,18 @@ Newmark<VectorType, MatrixType, FunctionType, dim>::clone() {
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
,
VectorType
const
&
_ud_initial
,
VectorType
const
&
_udd_initial
,
VectorType
const
&
_ud_initial
,
Dune
::
BitSetVector
<
dim
>
const
&
_dirichletNodes
,
FunctionType
const
&
_dirichletFunction
)
:
A
(
_A
),
B
(
_B
),
u
(
_u_initial
),
ud
(
_ud_initial
),
udd
(
_udd_initial
),
dirichletNodes
(
_dirichletNodes
),
dirichletFunction
(
_dirichletFunction
)
{}
template
<
class
VectorType
,
class
MatrixType
,
class
FunctionType
,
int
dim
>
void
EulerPair
<
VectorType
,
MatrixType
,
FunctionType
,
dim
>::
nextTimeStep
()
{
udd_old
=
udd
;
ud_old
=
ud
;
u_old
=
u
;
}
...
...
@@ -286,10 +284,6 @@ void EulerPair<VectorType, MatrixType, FunctionType, dim>::postProcess(
u
=
u_old
;
Arithmetic
::
addProduct
(
u
,
tau
,
ud
);
udd
=
0
;
Arithmetic
::
addProduct
(
udd
,
1.0
/
tau
,
ud
);
Arithmetic
::
addProduct
(
udd
,
-
1.0
/
tau
,
ud_old
);
}
template
<
class
VectorType
,
class
MatrixType
,
class
FunctionType
,
int
dim
>
...
...
This diff is collapsed.
Click to expand it.
src/timestepping.hh
+
0
−
3
View file @
4c09e7d5
...
...
@@ -93,7 +93,6 @@ class EulerPair
public:
EulerPair
(
MatrixType
const
&
_A
,
MatrixType
const
&
_B
,
VectorType
const
&
_u_initial
,
VectorType
const
&
_ud_initial
,
VectorType
const
&
_udd_initial
,
Dune
::
BitSetVector
<
dim
>
const
&
_dirichletNodes
,
FunctionType
const
&
_dirichletFunction
);
...
...
@@ -112,13 +111,11 @@ class EulerPair
MatrixType
const
&
B
;
VectorType
u
;
VectorType
ud
;
VectorType
udd
;
Dune
::
BitSetVector
<
dim
>
const
&
dirichletNodes
;
FunctionType
const
&
dirichletFunction
;
VectorType
u_old
;
VectorType
ud_old
;
VectorType
udd_old
;
double
tau
;
...
...
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