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
81d8d089
Commit
81d8d089
authored
Jun 25, 2012
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some modifications in the couplingProblemStat
parent
11917c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
AMDiS/src/CouplingProblemStat.h
AMDiS/src/CouplingProblemStat.h
+11
-7
No files found.
AMDiS/src/CouplingProblemStat.h
View file @
81d8d089
...
...
@@ -40,11 +40,12 @@ namespace AMDiS {
* This class defines a coupled stationary problem definition in sequential
* computations.
*/
class
CouplingProblemStat
template
<
typename
ProblemStatType
>
class
CouplingProblemStatImpl
{
public:
/// Constructor
CouplingProblemStat
(
std
::
string
name_
)
CouplingProblemStat
Impl
(
std
::
string
name_
)
:
name
(
name_
),
nComponents
(
0
),
nMeshes
(
0
),
...
...
@@ -53,10 +54,10 @@ namespace AMDiS {
{}
/// Destructor
virtual
~
CouplingProblemStat
()
{}
virtual
~
CouplingProblemStat
Impl
()
{}
/// add problem by number
virtual
void
addProblem
(
ProblemStat
*
prob
)
virtual
void
addProblem
(
ProblemStat
Type
*
prob
)
{
problems
.
push_back
(
prob
);
nComponents
+=
prob
->
getNumComponents
();
...
...
@@ -64,7 +65,7 @@ namespace AMDiS {
/// Initialisation of the problem.
virtual
void
initialize
(
Flag
initFlag
,
CouplingProblemStat
*
adoptProblem
=
NULL
,
CouplingProblemStat
Impl
<
ProblemStatType
>
*
adoptProblem
=
NULL
,
Flag
adoptFlag
=
INIT_NOTHING
)
{
...
...
@@ -211,7 +212,7 @@ namespace AMDiS {
* Returns the problem with the given number. If only one problem
* is managed by this master problem, the number hasn't to be given.
*/
virtual
ProblemStat
*
getProblem
(
int
number
=
0
)
virtual
ProblemStat
Type
*
getProblem
(
int
number
=
0
)
{
return
problems
[
number
];
}
...
...
@@ -281,8 +282,11 @@ namespace AMDiS {
*/
CoarseningManager
*
coarseningManager
;
vector
<
ProblemStat
*>
problems
;
vector
<
ProblemStat
Type
*>
problems
;
};
typedef
CouplingProblemStatImpl
<
ProblemStat
>
CouplingProblemStat
;
}
#endif
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