Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CardMech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
KIT
Mpp
CardMech
Commits
78570cee
Commit
78570cee
authored
10 months ago
by
Laura Stengel
Browse files
Options
Downloads
Patches
Plain Diff
added outputs for memory logger
parent
1982ecea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#297565
failed
10 months ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mpp
+1
-1
1 addition, 1 deletion
mpp
src/elasticity/MainElasticity.cpp
+13
-0
13 additions, 0 deletions
src/elasticity/MainElasticity.cpp
with
14 additions
and
1 deletion
mpp
@
97c1a810
Compare
dee7b25f
...
97c1a810
Subproject commit
dee7b25f8804ddf50ceae01ca5c878348d7c735d
Subproject commit
97c1a81004bdaf32a88909ba0a643dac62b26127
This diff is collapsed.
Click to expand it.
src/elasticity/MainElasticity.cpp
+
13
−
0
View file @
78570cee
...
...
@@ -3,6 +3,7 @@
#include
"CardiacInterpolation.hpp"
#include
"MainElasticity.hpp"
#include
"MemoryLogger.hpp"
MainElasticity
::
MainElasticity
()
{
Config
::
Get
(
"Model"
,
modelName
);
...
...
@@ -127,7 +128,11 @@ void MainElasticity::generateStartVectors() {
vectorDisc
=
mechA
->
CreateDisc
(
3
);
scalarDisc
=
mechA
->
CreateDisc
(
1
);
MemoryLogger
::
LogMemory
(
"Before Displacement Creation"
);
displacement
=
std
::
make_unique
<
Vector
>
(
vectorDisc
);
MemoryLogger
::
LogMemory
(
"After Displacement Creation"
);
displacement
->
GetMatrixGraph
().
PrintVectorMemoryInfo
();
displacement
->
GetMatrixGraph
().
PrintMatrixMemoryInfo
();
*
displacement
=
0.0
;
//displacement->Clear();
}
...
...
@@ -214,6 +219,14 @@ std::vector<double> MainElasticity::Evaluate(const Vector &solution) {
PrintInfoEntry
(
"Right Ventricle Volume (ml)"
,
volume
[
1
],
2
),
PrintInfoEntry
(
"Left Atria Volume (ml)"
,
volume
[
2
],
2
),
PrintInfoEntry
(
"Right Atria Volume (ml)"
,
volume
[
3
],
2
));
MemoryLogger
::
PrintInfo
();
mout
.
PrintInfo
(
"Memory"
,
verbose
,
PrintInfoEntry
(
"Maximal used Memory in MB"
,
std
::
ranges
::
max
(
MemoryLogger
::
GetMemoryStampVector
())
));
}
mout
<<
endl
<<
"=========== Problem Information ============================="
<<
endl
<<
endl
;
auto
result
=
elasticityProblem
->
EvaluationResults
(
solution
);
...
...
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