Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Backofen, Rainer
amdis
Commits
e27212ed
Commit
e27212ed
authored
13 years ago
by
Backofen, Rainer
Browse files
Options
Downloads
Patches
Plain Diff
set debug mode flag in init file for time strategies in AdaptInstat
parent
c991d389
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AMDiS/src/AdaptInfo.h
+5
-5
5 additions, 5 deletions
AMDiS/src/AdaptInfo.h
AMDiS/src/AdaptInstationary.cc
+8
-1
8 additions, 1 deletion
AMDiS/src/AdaptInstationary.cc
AMDiS/src/parallel/PetscSolver.h
+1
-0
1 addition, 0 deletions
AMDiS/src/parallel/PetscSolver.h
with
14 additions
and
6 deletions
AMDiS/src/AdaptInfo.h
+
5
−
5
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
"
;
}
}
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/AdaptInstationary.cc
+
8
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
AMDiS/src/parallel/PetscSolver.h
+
1
−
0
View file @
e27212ed
...
...
@@ -36,6 +36,7 @@
#include
<petsc.h>
#include
<petscsys.h>
#include
<petscao.h>
#include
<petscksp.h>
namespace
AMDiS
{
...
...
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