Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
amdis
Commits
91d63106
Commit
91d63106
authored
13 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
some small style-guide changes
parent
eca32883
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AMDiS/src/Operator.cc
+5
-19
5 additions, 19 deletions
AMDiS/src/Operator.cc
AMDiS/src/Operator.h
+9
-4
9 additions, 4 deletions
AMDiS/src/Operator.h
with
14 additions
and
23 deletions
AMDiS/src/Operator.cc
+
5
−
19
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
);
}
}
This diff is collapsed.
Click to expand it.
AMDiS/src/Operator.h
+
9
−
4
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment