Skip to content
Snippets Groups Projects
Commit 78570cee authored by Laura Stengel's avatar Laura Stengel
Browse files

added outputs for memory logger

parent 1982ecea
No related branches found
No related tags found
No related merge requests found
Pipeline #297565 failed
Subproject commit dee7b25f8804ddf50ceae01ca5c878348d7c735d
Subproject commit 97c1a81004bdaf32a88909ba0a643dac62b26127
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment