Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
e27212ed
Commit
e27212ed
authored
May 31, 2011
by
Backofen, Rainer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set debug mode flag in init file for time strategies in AdaptInstat
parent
c991d389
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
AMDiS/src/AdaptInfo.h
AMDiS/src/AdaptInfo.h
+5
-5
AMDiS/src/AdaptInstationary.cc
AMDiS/src/AdaptInstationary.cc
+8
-1
AMDiS/src/parallel/PetscSolver.h
AMDiS/src/parallel/PetscSolver.h
+1
-0
No files found.
AMDiS/src/AdaptInfo.h
View file @
e27212ed
...
...
@@ -247,15 +247,15 @@ namespace AMDiS {
void
printTimeErrorLowInfo
()
{
for
(
unsigned
int
i
=
0
;
i
<
scalContents
.
size
();
i
++
){
std
::
cout
<<
" Time error estimate = "
std
::
cout
<<
" Time error estimate
["
<<
i
<<
"]
= "
<<
getTimeEstCombined
(
i
)
<<
"
\n
"
<<
" Time error estimate sum = "
<<
" Time error estimate sum
["
<<
i
<<
"]
= "
<<
scalContents
[
i
]
->
est_t_sum
<<
"
\n
"
<<
" Time error estimate max = "
<<
" Time error estimate max
["
<<
i
<<
"]
= "
<<
scalContents
[
i
]
->
est_t_max
<<
"
\n
"
<<
" Time error low bound = "
<<
" Time error low bound
["
<<
i
<<
"]
= "
<<
scalContents
[
i
]
->
timeErrLow
<<
"
\n
"
<<
" Time error high bound = "
<<
" Time error high bound
["
<<
i
<<
"]
= "
<<
scalContents
[
i
]
->
timeTolerance
<<
"
\n
"
;
}
}
...
...
AMDiS/src/AdaptInstationary.cc
View file @
e27212ed
...
...
@@ -235,7 +235,7 @@ namespace AMDiS {
void
AdaptInstationary
::
simpleAdaptiveTimeStrategy
()
{
FUNCNAME
(
"AdaptInstationary::
explicit
TimeStrategy()"
);
FUNCNAME
(
"AdaptInstationary::
simpleAdaptive
TimeStrategy()"
);
// estimate before first adaption
if
(
adaptInfo
->
getTime
()
<=
adaptInfo
->
getStartTime
())
...
...
@@ -250,6 +250,12 @@ namespace AMDiS {
problemIteration
->
oneIteration
(
adaptInfo
,
FULL_ITERATION
);
adaptInfo
->
setLastProcessedTimestep
(
adaptInfo
->
getTimestep
());
if
(
dbgMode
)
{
std
::
cout
<<
"=== ADAPT INFO DEBUG MODE ===
\n
"
;
std
::
cout
<<
"=== in simpleAdaptiveTimeStrategy() ===
\n
"
;
adaptInfo
->
printTimeErrorLowInfo
();
}
// First, check for increase of timestep
if
(
!
fixedTimestep
&&
adaptInfo
->
timeErrorLow
())
...
...
@@ -360,6 +366,7 @@ namespace AMDiS {
Parameters
::
get
(
aName
+
"->time delta 2"
,
timeDelta2
);
Parameters
::
get
(
aName
+
"->info"
,
info
);
Parameters
::
get
(
aName
+
"->break when stable"
,
breakWhenStable
);
Parameters
::
get
(
aName
+
"->time adaptivity debug mode"
,
dbgMode
);
Parameters
::
get
(
aName
+
"->queue->runtime"
,
queueRuntime
);
Parameters
::
get
(
aName
+
"->queue->serialization filename"
,
queueSerializationFilename
);
...
...
AMDiS/src/parallel/PetscSolver.h
View file @
e27212ed
...
...
@@ -36,6 +36,7 @@
#include <petsc.h>
#include <petscsys.h>
#include <petscao.h>
#include <petscksp.h>
namespace
AMDiS
{
...
...
Write
Preview
Markdown
is supported
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