Commit 91d63106 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

some small style-guide changes

parent eca32883
......@@ -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);
}
}
......@@ -78,21 +78,26 @@ namespace AMDiS {
return optimized;
}
/// Adds a SecondOrderTerm to the Operator
/// Adds a ZeroOrderTerm to the Operator
template <typename T>
void addSecondOrderTerm(T *term);
void addZeroOrderTerm(T *term);
/// Adds a FirstOrderTerm to the Operator
template <typename T>
void addFirstOrderTerm(T *term, FirstOrderType type = GRD_PHI);
/// Adds a ZeroOrderTerm to the Operator
/// Adds a SecondOrderTerm to the Operator
template <typename T>
void addZeroOrderTerm(T *term);
void addSecondOrderTerm(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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment