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
91d63106
Commit
91d63106
authored
Jul 25, 2011
by
Praetorius, Simon
Browse files
some small style-guide changes
parent
eca32883
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Operator.cc
View file @
91d63106
...
...
@@ -198,33 +198,19 @@ namespace AMDiS {
void
Operator
::
addTerm
(
ZeroOrderTerm
*
term
)
{
zeroOrder
.
push_back
(
term
);
term
->
operat
=
this
;
for
(
std
::
set
<
const
FiniteElemSpace
*>::
iterator
it
=
term
->
getAuxFeSpaces
().
begin
();
it
!=
term
->
getAuxFeSpaces
().
end
();
++
it
)
auxFeSpaces
.
insert
(
*
it
);
addZeroOrderTerm
(
term
);
}
void
Operator
::
addTerm
(
FirstOrderTerm
*
term
,
FirstOrderType
type
)
{
if
(
type
==
GRD_PSI
)
{
firstOrderGrdPsi
.
push_back
(
term
);
}
else
{
firstOrderGrdPhi
.
push_back
(
term
);
}
term
->
operat
=
this
;
for
(
std
::
set
<
const
FiniteElemSpace
*>::
iterator
it
=
term
->
getAuxFeSpaces
().
begin
();
it
!=
term
->
getAuxFeSpaces
().
end
();
++
it
)
auxFeSpaces
.
insert
(
*
it
);
addFirstOrderTerm
(
term
,
type
);
}
void
Operator
::
addTerm
(
SecondOrderTerm
*
term
)
{
secondOrder
.
push_back
(
term
);
term
->
operat
=
this
;
for
(
std
::
set
<
const
FiniteElemSpace
*>::
iterator
it
=
term
->
getAuxFeSpaces
().
begin
();
it
!=
term
->
getAuxFeSpaces
().
end
();
++
it
)
auxFeSpaces
.
insert
(
*
it
);
addSecondOrderTerm
(
term
);
}
}
AMDiS/src/Operator.h
View file @
91d63106
...
...
@@ -78,21 +78,26 @@ namespace AMDiS {
return
optimized
;
}
/// Adds a
Second
OrderTerm to the Operator
/// Adds a
Zero
OrderTerm to the Operator
template
<
typename
T
>
void
add
Second
OrderTerm
(
T
*
term
);
void
add
Zero
OrderTerm
(
T
*
term
);
/// Adds a FirstOrderTerm to the Operator
template
<
typename
T
>
void
addFirstOrderTerm
(
T
*
term
,
FirstOrderType
type
=
GRD_PHI
);
/// Adds a
Zero
OrderTerm to the Operator
/// Adds a
Second
OrderTerm to the Operator
template
<
typename
T
>
void
add
Zero
OrderTerm
(
T
*
term
);
void
add
Second
OrderTerm
(
T
*
term
);
/// Adds a ZeroOrderTerm to the Operator
void
addTerm
(
ZeroOrderTerm
*
term
);
/// Adds a FirstOrderTerm to the Operator
void
addTerm
(
FirstOrderTerm
*
term
,
FirstOrderType
type
);
/// Adds a SecondOrderTerm to the Operator
void
addTerm
(
SecondOrderTerm
*
term
);
/** \brief
...
...
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