Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
ee319d21
Commit
ee319d21
authored
May 07, 2009
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix if there is no solver defined in problem definition.
parent
e216a06e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
AMDiS/src/CreatorMap.h
AMDiS/src/CreatorMap.h
+0
-1
AMDiS/src/ProblemScal.cc
AMDiS/src/ProblemScal.cc
+3
-3
AMDiS/src/ProblemVec.cc
AMDiS/src/ProblemVec.cc
+3
-3
No files found.
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