Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
ee319d21
Commit
ee319d21
authored
May 07, 2009
by
Thomas Witkowski
Browse files
Bugfix if there is no solver defined in problem definition.
parent
e216a06e
Changes
3
Show whitespace changes
Inline
Side-by-side
AMDiS/src/CreatorMap.h
View file @
ee319d21
...
...
@@ -23,7 +23,6 @@
#define AMDIS_CREATORMAP_H
#include <map>
#include "Global.h"
#include "CreatorInterface.h"
...
...
AMDiS/src/ProblemScal.cc
View file @
ee319d21
...
...
@@ -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
=
...
...
AMDiS/src/ProblemVec.cc
View file @
ee319d21
...
...
@@ -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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment