Commit f5bb1382 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bugfix for scal problems

parent 9627014c
......@@ -427,8 +427,7 @@ namespace AMDiS {
std::string solverType("no");
GET_PARAMETER(0, name_ + "->solver", &solverType);
OEMSolverCreator<DOFVector<double> > *solverCreator =
dynamic_cast<OEMSolverCreator<DOFVector<double> >*>(
CreatorMap<OEMSolver<DOFVector<double> > >::getCreator(solverType));
dynamic_cast<OEMSolverCreator<DOFVector<double> >*>(CreatorMap<OEMSolver<DOFVector<double> > >::getCreator(solverType));
TEST_EXIT(solverCreator)("no solver type\n");
solverCreator->setName(name_ + "->solver");
solver_ = solverCreator->create();
......@@ -488,9 +487,9 @@ namespace AMDiS {
EstimatorCreator *estimatorCreator =
dynamic_cast<EstimatorCreator*>(
CreatorMap<Estimator>::getCreator(estimatorType));
if(estimatorCreator) {
if (estimatorCreator) {
estimatorCreator->setName(name_ + "->estimator");
if(estimatorType == "recovery") {
if (estimatorType == "recovery") {
dynamic_cast<RecoveryEstimator::Creator*>(estimatorCreator)->setSolution(solution_);
}
estimator_ = estimatorCreator->create();
......@@ -511,7 +510,7 @@ namespace AMDiS {
int writeSerialization = 0;
GET_PARAMETER(0, name_ + "->output->write serialization", "%d",
&writeSerialization);
if(writeSerialization) {
if (writeSerialization) {
fileWriters_.push_back(NEW Serializer<ProblemScal>(this));
}
}
......@@ -520,7 +519,7 @@ namespace AMDiS {
{
FUNCNAME("Problem::estimate()");
if(estimator_) {
if (estimator_) {
clock_t first = clock();
estimator_->estimate(adaptInfo->getTimestep());
INFO(info_,8)("estimation of the error needed %.5f seconds\n",
......@@ -597,6 +596,8 @@ namespace AMDiS {
elInfo = stack.traverseNext(elInfo);
}
systemMatrix_->removeRowsWithDBC(systemMatrix_->getApplyDBCs());
if (systemMatrix_->getBoundaryManager())
systemMatrix_->getBoundaryManager()->exitMatrix(systemMatrix_);
if (rhs_->getBoundaryManager())
......@@ -637,9 +638,7 @@ namespace AMDiS {
Mesh *mesh = this->getMesh();
FiniteElemSpace *fe = this->getFESpace();
std::map<int, double> vec;
TraverseStack stack;
ElInfo *elInfo = stack.traverseFirst(mesh,
-1,
......
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