Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
9c9766cc
Commit
9c9766cc
authored
Apr 06, 2010
by
Backofen, Rainer
Browse files
adaption loop symmetrized w.r.t. increase and decrease of timestep
parent
95bf8af2
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/AdaptInfo.h
View file @
9c9766cc
...
...
@@ -250,7 +250,8 @@ namespace AMDiS {
{
for
(
unsigned
int
i
=
0
;
i
<
scalContents
.
size
();
i
++
)
std
::
cout
<<
" Time error estimate = "
<<
scalContents
[
i
]
->
est_t_sum
<<
" Time error bound = "
<<
scalContents
[
i
]
->
timeErrLow
<<
"
\n
"
;
<<
" Time error low bound = "
<<
scalContents
[
i
]
->
timeErrLow
<<
" Time error high bound = "
<<
scalContents
[
i
]
->
timeTolerance
<<
"
\n
"
;
}
/// Returns \ref spaceIteration.
...
...
AMDiS/src/AdaptInstationary.cc
View file @
9c9766cc
...
...
@@ -186,6 +186,10 @@ namespace AMDiS {
!
(
adaptInfo
->
getTimestep
()
<=
adaptInfo
->
getMinTimestep
())
&&
adaptInfo
->
getTimestepIteration
()
<=
adaptInfo
->
getMaxTimestepIteration
());
adaptInfo
->
setLastProcessedTimestep
(
adaptInfo
->
getTimestep
());
// After successful iteration/timestep the timestep will be changed according
// adaption rules for next timestep.
// First, check for increase of timestep
if
(
!
fixedTimestep_
&&
adaptInfo
->
timeErrorLow
())
{
adaptInfo
->
setTimestep
(
adaptInfo
->
getTimestep
()
*
time_delta_2
);
if
(
dbgMode
)
{
...
...
@@ -201,6 +205,12 @@ namespace AMDiS {
adaptInfo
->
printTimeErrorLowInfo
();
}
}
// Second, check for decrease of timestep
if
(
!
fixedTimestep_
&&
!
adaptInfo
->
timeToleranceReached
()
&&
!
(
adaptInfo
->
getTimestep
()
<=
adaptInfo
->
getMinTimestep
()))
{
adaptInfo
->
setTimestep
(
adaptInfo
->
getTimestep
()
*
time_delta_1
);
}
}
void
AdaptInstationary
::
oneTimestep
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment