Commit ee319d21 authored by Thomas Witkowski's avatar Thomas Witkowski

Bugfix if there is no solver defined in problem definition.

parent e216a06e
......@@ -23,7 +23,6 @@
#define AMDIS_CREATORMAP_H
#include <map>
#include "Global.h"
#include "CreatorInterface.h"
......
......@@ -456,7 +456,7 @@ namespace AMDiS {
void ProblemScal::createSolver()
{
// === create solver ===
std::string solverType("no");
std::string solverType("0");
GET_PARAMETER(0, name + "->solver", &solverType);
OEMSolverCreator *solverCreator =
dynamic_cast<OEMSolverCreator*>(CreatorMap<OEMSolver>::getCreator(solverType));
......@@ -472,7 +472,7 @@ namespace AMDiS {
mesh->setElementDataPrototype(NEW LeafDataEstimatable(NEW LeafDataCoarsenable));
// === create estimator ===
std::string estimatorType("no");
std::string estimatorType("0");
GET_PARAMETER(0, name + "->estimator", &estimatorType);
EstimatorCreator *estimatorCreator =
dynamic_cast<EstimatorCreator*>(
......@@ -647,7 +647,7 @@ namespace AMDiS {
void ProblemScal::createPrecon()
{
::std::string preconType("no");
std::string preconType("no");
GET_PARAMETER(0, name + "->solver->left precon", &preconType);
CreatorInterface<ITL_BasePreconditioner> *preconCreator =
......
......@@ -345,7 +345,7 @@ namespace AMDiS {
FUNCNAME("ProblemVec::createSolver()");
// === create solver ===
std::string solverType("no");
std::string solverType("0");
GET_PARAMETER(0, name + "->solver", &solverType);
OEMSolverCreator *solverCreator =
dynamic_cast<OEMSolverCreator*>(CreatorMap<OEMSolver>::getCreator(solverType));
......@@ -374,7 +374,7 @@ namespace AMDiS {
estName = name + "->estimator[" + std::string(number) + "]";
// === create estimator ===
std::string estimatorType("no");
std::string estimatorType("0");
GET_PARAMETER(0, estName, &estimatorType);
EstimatorCreator *estimatorCreator =
dynamic_cast<EstimatorCreator*>(
......@@ -824,7 +824,7 @@ namespace AMDiS {
void ProblemVec::createPrecon()
{
::std::string preconType("no");
std::string preconType("no");
GET_PARAMETER(0, name + "->solver->left precon", &preconType);
CreatorInterface<ITL_BasePreconditioner> *preconCreator =
......
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