Commit 449a699f authored by Backofen, Rainer's avatar Backofen, Rainer
Browse files

add debug output for time adaptivity (all strategies)

parent 8d9180ab
......@@ -162,6 +162,12 @@ namespace AMDiS {
problemIteration->oneIteration(adaptInfo, FULL_ITERATION);
problemIteration->endIteration(adaptInfo);
adaptInfo->setLastProcessedTimestep(adaptInfo->getTimestep());
if (dbgMode) {
std::cout << "=== ADAPT INFO DEBUG MODE ===\n";
std::cout << "=== explicitTimeStrategy() ===\n";
adaptInfo->printTimeErrorLowInfo();
}
}
......@@ -201,7 +207,14 @@ namespace AMDiS {
// === Space iterations. ===
do {
problemIteration->beginIteration(adaptInfo);
if (dbgMode) {
std::cout << "=== ADAPT INFO DEBUG MODE ===\n";
std::cout << "=== in implicitTimeStrategy() ===\n";
std::cout << "=== space/time iteration "<< adaptInfo->getSpaceIteration()
<<" : "<< adaptInfo->getTimestepIteration() <<" ===\n";
adaptInfo->printTimeErrorLowInfo();
}
if (problemIteration->oneIteration(adaptInfo, FULL_ITERATION)) {
if (!fixedTimestep &&
!adaptInfo->timeToleranceReached() &&
......@@ -231,6 +244,7 @@ namespace AMDiS {
adaptInfo->setLastProcessedTimestep(adaptInfo->getTimestep());
// After successful iteration/timestep the timestep will be changed according
// adaption rules for next timestep.
// First, check for increase of timestep
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment