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

Bugfix if there is no solver defined in problem definition.

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