Commit 26882a5f authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bug fix in AdaptInstationary

* Added some headers to AMDiS.h
parent e8cf640e
......@@ -94,6 +94,7 @@
#include "Traverse.h"
#include "Triangle.h"
#include "ValueWriter.h"
#include "VtkWriter.h"
#include "demangle.h"
#include "parareal/ProblemBase.h"
#include "parareal/AdaptParaReal.h"
......
......@@ -114,8 +114,8 @@ namespace AMDiS {
if (!fixedTimestep_ &&
!adaptInfo_->timeToleranceReached() &&
!adaptInfo_->getTimestep() <= adaptInfo_->getMinTimestep())
{
!adaptInfo_->getTimestep() <= adaptInfo_->getMinTimestep()) {
adaptInfo_->setTime(adaptInfo_->getTime() - adaptInfo_->getTimestep());
adaptInfo_->setTimestep(adaptInfo_->getTimestep() * time_delta_1);
continue;
......@@ -123,6 +123,12 @@ namespace AMDiS {
adaptInfo_->setSpaceIteration(0);
/* === Do only space iterations only if the maximum is higher than 0. === */
if (adaptInfo_->getMaxSpaceIteration() > 0) {
/* === Space iterations === */
do {
problemIteration_->beginIteration(adaptInfo_);
......@@ -144,6 +150,12 @@ namespace AMDiS {
} while(!adaptInfo_->spaceToleranceReached() &&
adaptInfo_->getSpaceIteration() <= adaptInfo_->getMaxSpaceIteration());
} else {
problemIteration_->endIteration(adaptInfo_);
}
} while(!adaptInfo_->timeToleranceReached() &&
!adaptInfo_->getTimestep() <= adaptInfo_->getMinTimestep() &&
adaptInfo_->getTimestepIteration() <= adaptInfo_->getMaxTimestepIteration());
......
......@@ -869,7 +869,8 @@ namespace AMDiS {
ElInfo* TraverseStack::traverseNeighbour2d(ElInfo* elinfo_old, int neighbour)
{
FUNCNAME("TraverseStack::traverseNeighbour2d");
FUNCNAME("TraverseStack::traverseNeighbour2d()");
Triangle *el, *el2, *sav_el;
ElInfo *old_elinfo, *elinfo, *elinfo2;
int i, nb, opp_vertex, stack2_used;
......
Supports Markdown
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