Commit ac1878f9 by Praetorius, Simon

problems with swap() solved

parent a84300ab
 ... ... @@ -71,6 +71,46 @@ namespace AMDiS T val; }; template struct add_constant : FunctorBase { typedef T result_type; S value; add_constant(S value) : value(value) {} result_type& operator()(T& v) { return (v += value); } }; template struct minus_constant : FunctorBase { typedef T result_type; S value; minus_constant(S value) : value(value) {} result_type& operator()(T& v) { return (v -= value); } }; template struct mult_constant : FunctorBase { typedef T result_type; S value; mult_constant(S value) : value(value) {} result_type& operator()(T& v) { return (v *= value); } }; template struct div_constant : FunctorBase { typedef T result_type; S value; div_constant(S value) : value(value) {} result_type& operator()(T& v) { return (v /= value); } }; /// functor for operator+= template struct assign : FunctorBase ... ... @@ -101,6 +141,7 @@ namespace AMDiS result_type& operator()(T& v, T const& v0) { return apply(v,v0); } }; /// abs(v) == |v| template struct abs : FunctorBase ... ...
 ... ... @@ -366,6 +366,7 @@ namespace AMDiS { namespace Parallel { Element *child0 = boundEl.el->getFirstChild(); Element *child1 = boundEl.el->getSecondChild(); if (boundEl.reverseMode) { using std::swap; swap(s0, s1); swap(child0, child1); } ... ... @@ -478,6 +479,7 @@ namespace AMDiS { namespace Parallel { Element *child0 = el->getFirstChild(); Element *child1 = el->getSecondChild(); if (rMode) { using std::swap; swap(s0, s1); swap(child0, child1); } ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!