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
3f38838b
Commit
3f38838b
authored
11 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Algorit] Use 0.5*(V0 + V1) in state computation
parent
adcb60c3
No related branches found
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/one-body-sample.cc
+6
-1
6 additions, 1 deletion
src/one-body-sample.cc
with
6 additions
and
1 deletion
src/one-body-sample.cc
+
6
−
1
View file @
3f38838b
...
@@ -318,6 +318,7 @@ int main(int argc, char *argv[]) {
...
@@ -318,6 +318,7 @@ int main(int argc, char *argv[]) {
parset
.
get
<
double
>
(
"boundary.friction.L"
));
parset
.
get
<
double
>
(
"boundary.friction.L"
));
Vector
v
=
v_initial
;
Vector
v
=
v_initial
;
Vector
v_m
(
fineVertexCount
);
ScalarVector
alpha
(
fineVertexCount
);
ScalarVector
alpha
(
fineVertexCount
);
auto
const
timeSteps
=
parset
.
get
<
size_t
>
(
"timeSteps.number"
),
auto
const
timeSteps
=
parset
.
get
<
size_t
>
(
"timeSteps.number"
),
...
@@ -378,7 +379,11 @@ int main(int argc, char *argv[]) {
...
@@ -378,7 +379,11 @@ int main(int argc, char *argv[]) {
ScalarVector
alpha_saved
;
ScalarVector
alpha_saved
;
double
lastStateCorrection
;
double
lastStateCorrection
;
for
(
size_t
stateFPI
=
1
;
stateFPI
<=
maximumStateFPI
;
++
stateFPI
)
{
for
(
size_t
stateFPI
=
1
;
stateFPI
<=
maximumStateFPI
;
++
stateFPI
)
{
stateUpdater
->
solve
(
v
);
timeSteppingScheme
->
extractOldVelocity
(
v_m
);
v_m
*=
0.5
;
Arithmetic
::
addProduct
(
v_m
,
0.5
,
v
);
stateUpdater
->
solve
(
v_m
);
stateUpdater
->
extractLogState
(
alpha
);
stateUpdater
->
extractLogState
(
alpha
);
if
(
stateFPI
==
1
)
if
(
stateFPI
==
1
)
...
...
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