Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amdis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Backofen, Rainer
amdis
Commits
3f1c87ca
Commit
3f1c87ca
authored
Apr 11, 2011
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some new debug functions.
parent
147d0144
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
AMDiS/src/AdaptInstationary.cc
AMDiS/src/AdaptInstationary.cc
+5
-5
AMDiS/src/Debug.cc
AMDiS/src/Debug.cc
+18
-0
AMDiS/src/Debug.h
AMDiS/src/Debug.h
+2
-0
AMDiS/src/Marker.cc
AMDiS/src/Marker.cc
+2
-0
No files found.
AMDiS/src/AdaptInstationary.cc
View file @
3f1c87ca
...
...
@@ -154,15 +154,15 @@ namespace AMDiS {
problemIteration
->
oneIteration
(
adaptInfo
,
NO_ADAPTION
);
adaptInfo
->
incTimestepIteration
();
if
(
!
fixedTimestep
&&
!
adaptInfo
->
timeToleranceReached
()
&&
adaptInfo
->
getTimestepIteration
()
<=
adaptInfo
->
getMaxTimestepIteration
()
&&
!
(
adaptInfo
->
getTimestep
()
<=
adaptInfo
->
getMinTimestep
()))
{
adaptInfo
->
setTime
(
adaptInfo
->
getTime
()
-
adaptInfo
->
getTimestep
());
adaptInfo
->
setTimestep
(
adaptInfo
->
getTimestep
()
*
timeDelta1
);
continue
;
adaptInfo
->
setTime
(
adaptInfo
->
getTime
()
-
adaptInfo
->
getTimestep
());
adaptInfo
->
setTimestep
(
adaptInfo
->
getTimestep
()
*
timeDelta1
);
continue
;
}
...
...
AMDiS/src/Debug.cc
View file @
3f1c87ca
...
...
@@ -136,6 +136,24 @@ namespace AMDiS {
}
void
colorMeshByMacroIndex
(
Mesh
*
mesh
,
std
::
string
filename
)
{
FUNCNAME
(
"debug::colorMeshByMacroIndex()"
);
std
::
map
<
int
,
double
>
vec
;
TraverseStack
stack
;
ElInfo
*
elInfo
=
stack
.
traverseFirst
(
mesh
,
-
1
,
Mesh
::
CALL_LEAF_EL
);
while
(
elInfo
)
{
int
index
=
elInfo
->
getElement
()
->
getIndex
();
vec
[
index
]
=
elInfo
->
getMacroElement
()
->
getIndex
();
elInfo
=
stack
.
traverseNext
(
elInfo
);
}
ElementFileWriter
::
writeFile
(
vec
,
mesh
,
filename
);
}
void
colorDofVectorByLocalElementDofs
(
DOFVector
<
double
>&
vec
,
Element
*
el
)
{
// === Get local indices of the given element. ===
...
...
AMDiS/src/Debug.h
View file @
3f1c87ca
...
...
@@ -84,6 +84,8 @@ namespace AMDiS {
void
highlightElementIndexMesh
(
Mesh
*
mesh
,
int
idx
,
std
::
string
filename
);
void
colorMeshByMacroIndex
(
Mesh
*
mesh
,
std
::
string
filename
);
void
colorDofVectorByLocalElementDofs
(
DOFVector
<
double
>&
vec
,
Element
*
el
);
bool
colorDofVectorByLocalElementDofs
(
DOFVector
<
double
>&
vec
,
...
...
AMDiS/src/Marker.cc
View file @
3f1c87ca
...
...
@@ -72,6 +72,8 @@ namespace AMDiS {
void
Marker
::
markElement
(
AdaptInfo
*
adaptInfo
,
ElInfo
*
elInfo
)
{
FUNCNAME
(
"Marker::markElement()"
);
Element
*
el
=
elInfo
->
getElement
();
double
lError
=
el
->
getEstimation
(
row
);
...
...
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