Skip to content
Snippets Groups Projects
Commit 4403c355 authored by Simon Praetorius's avatar Simon Praetorius Committed by Timo Koch
Browse files

[yasp] Extend test to capture load balancers

parent eea2164e
No related branches found
No related tags found
1 merge request!628Make YLoadBalanceForward a base of YaspFixedSizePartitioner
Pipeline #54498 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;
}
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