Skip to content
Snippets Groups Projects
Commit 93c53585 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'issue/fix-issue-159' into 'master'

Make YLoadBalanceForward a base of YaspFixedSizePartitioner

Closes #159

See merge request !628

(cherry picked from commit b7844f60)

eea2164e Make YLoadBalanceForward a base of YaspFixedSizePartitioner
4403c355 [yasp] Extend test to capture load balancers
parent e6688a27
No related branches found
No related tags found
1 merge request!629Merge branch 'issue/fix-issue-159' into 'master'
Pipeline #54501 passed
......@@ -121,5 +121,34 @@ int main (int argc , char **argv)
Dune::Yasp::DefaultPartitioning<2> p2; test<2>(p2);
Dune::Yasp::DefaultPartitioning<3> p3; test<3>(p3);
// Test construction of partitioners
{
Dune::Yasp::PowerDPartitioning<1> ylbp1;
Dune::Yasp::PowerDPartitioning<2> ylbp2;
Dune::Yasp::PowerDPartitioning<3> ylbp3;
Dune::Yasp::FixedSizePartitioning<1> yfsp1(std::array<int,1>{1});
Dune::Yasp::FixedSizePartitioning<2> yfsp2(std::array<int,2>{1,1});
Dune::Yasp::FixedSizePartitioning<3> yfsp3(std::array<int,3>{1,1,1});
}
DUNE_NO_DEPRECATED_BEGIN
// deprecated partitioners
{
Dune::YLoadBalanceDefault<1> ylbd1;
Dune::YLoadBalanceDefault<2> ylbd2;
Dune::YLoadBalanceDefault<3> ylbd3;
Dune::YLoadBalancePowerD<1> ylbp1;
Dune::YLoadBalancePowerD<2> ylbp2;
Dune::YLoadBalancePowerD<3> ylbp3;
Dune::YaspFixedSizePartitioner<1> yfsp1(std::array<int,1>{1});
Dune::YaspFixedSizePartitioner<2> yfsp2(std::array<int,2>{1,1});
Dune::YaspFixedSizePartitioner<3> yfsp3(std::array<int,3>{1,1,1});
}
DUNE_NO_DEPRECATED_END
return 0;
}
......@@ -229,7 +229,7 @@ DUNE_NO_DEPRECATED_BEGIN
* \deprecated use FixedSizePartitioning
*/
template<int d>
class YaspFixedSizePartitioner : public YLoadBalance<d>
class YaspFixedSizePartitioner : public YLoadBalanceForward<d>
{
public:
typedef std::array<int, d> iTupel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment