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 { ...@@ -198,33 +198,19 @@ namespace AMDiS {
void Operator::addTerm(ZeroOrderTerm *term) void Operator::addTerm(ZeroOrderTerm *term)
{ {
zeroOrder.push_back(term); addZeroOrderTerm(term);
term->operat = this;
for (std::set<const FiniteElemSpace*>::iterator it = term->getAuxFeSpaces().begin();
it != term->getAuxFeSpaces().end(); ++it)
auxFeSpaces.insert(*it);
} }
void Operator::addTerm(FirstOrderTerm *term, void Operator::addTerm(FirstOrderTerm *term,
FirstOrderType type) FirstOrderType type)
{ {
if (type == GRD_PSI) { addFirstOrderTerm(term, type);
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);
} }
void Operator::addTerm(SecondOrderTerm *term) void Operator::addTerm(SecondOrderTerm *term)
{ {
secondOrder.push_back(term); addSecondOrderTerm(term);
term->operat = this;
for (std::set<const FiniteElemSpace*>::iterator it = term->getAuxFeSpaces().begin();
it != term->getAuxFeSpaces().end(); ++it)
auxFeSpaces.insert(*it);
} }
} }
...@@ -78,21 +78,26 @@ namespace AMDiS { ...@@ -78,21 +78,26 @@ namespace AMDiS {
return optimized; return optimized;
} }
/// Adds a SecondOrderTerm to the Operator /// Adds a ZeroOrderTerm to the Operator
template <typename T> template <typename T>
void addSecondOrderTerm(T *term); void addZeroOrderTerm(T *term);
/// Adds a FirstOrderTerm to the Operator /// Adds a FirstOrderTerm to the Operator
template <typename T> template <typename T>
void addFirstOrderTerm(T *term, FirstOrderType type = GRD_PHI); void addFirstOrderTerm(T *term, FirstOrderType type = GRD_PHI);
/// Adds a ZeroOrderTerm to the Operator /// Adds a SecondOrderTerm to the Operator
template <typename T> template <typename T>
void addZeroOrderTerm(T *term); void addSecondOrderTerm(T *term);
/// Adds a ZeroOrderTerm to the Operator
void addTerm(ZeroOrderTerm *term); void addTerm(ZeroOrderTerm *term);
/// Adds a FirstOrderTerm to the Operator
void addTerm(FirstOrderTerm *term, void addTerm(FirstOrderTerm *term,
FirstOrderType type); FirstOrderType type);
/// Adds a SecondOrderTerm to the Operator
void addTerm(SecondOrderTerm *term); void addTerm(SecondOrderTerm *term);
/** \brief /** \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