Commit fc73e33b authored by Santiago Ospina's avatar Santiago Ospina

set adaptivity policy to object

parent fc53e6a2
......@@ -137,16 +137,19 @@ int main(int argc, char** argv)
switch(FEorder){
case 1:{
Sim<SimplexAdaptive<2,1>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 2:{
Sim<SimplexAdaptive<2,2>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 3:{
Sim<SimplexAdaptive<2,3>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
......@@ -182,16 +185,19 @@ int main(int argc, char** argv)
switch(FEorder){
case 1:{
Sim<CubeAdaptive<2,1>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 2:{
Sim<CubeAdaptive<2,2>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 3:{
Sim<CubeAdaptive<2,3>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
......@@ -234,16 +240,19 @@ int main(int argc, char** argv)
switch(FEorder){
case 1:{
Sim<SimplexAdaptive<3,1>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 2:{
Sim<SimplexAdaptive<3,2>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 3:{
Sim<SimplexAdaptive<3,3>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
......@@ -279,16 +288,19 @@ int main(int argc, char** argv)
switch(FEorder){
case 1:{
Sim<CubeAdaptive<3,1>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 2:{
Sim<CubeAdaptive<3,2>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
case 3:{
Sim<CubeAdaptive<3,3>> sim(helper,grid,inifile);
sim.set_policy(Dune::Dorie::AdaptivityPolicy::WaterFlux);
sim.run();
break;
}
......
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