Commit 0cb925f5 authored by Oliver Sander's avatar Oliver Sander

instantiate YaspGrid without the second template parameter

[[Imported from SVN: r201]]
parent 7517d7e0
......@@ -16,8 +16,8 @@ int main(int argc, char **argv)
// make a grid
UnitCube<Dune::OneDGrid,1> uc0;
UnitCube<Dune::YaspGrid<3,3>,1> uc1;
UnitCube<Dune::YaspGrid<2,2>,1> uc2;
UnitCube<Dune::YaspGrid<3>,1> uc1;
UnitCube<Dune::YaspGrid<2>,1> uc2;
UnitCube<Dune::SGrid<1,1>,1> uc3;
UnitCube<Dune::SGrid<2,2>,1> uc4;
UnitCube<Dune::SGrid<3,3>,1> uc5;
......
......@@ -70,7 +70,7 @@ int main (int argc , char ** argv)
// start try/catch block to get error messages from dune
try {
UnitCube<Dune::YaspGrid<2,2>,64> uc;
UnitCube<Dune::YaspGrid<2>,64> uc;
uc.grid().globalRefine(2);
partimeloop(uc.grid(),0.5);
}
......
......@@ -7,10 +7,10 @@
// YaspGrid specialization
template<int dim, int size>
class UnitCube<Dune::YaspGrid<dim,dim>,size>
class UnitCube<Dune::YaspGrid<dim>,size>
{
public:
typedef Dune::YaspGrid<dim,dim> GridType;
typedef Dune::YaspGrid<dim> GridType;
UnitCube () : Len(1.0), s(size), p(false),
#if HAVE_MPI
......@@ -20,7 +20,7 @@ public:
#endif
{ }
Dune::YaspGrid<dim,dim>& grid ()
Dune::YaspGrid<dim>& grid ()
{
return grid_;
}
......@@ -29,7 +29,7 @@ private:
Dune::FieldVector<double,dim> Len;
Dune::FieldVector<int,dim> s;
Dune::FieldVector<bool,dim> p;
Dune::YaspGrid<dim,dim> grid_;
Dune::YaspGrid<dim> grid_;
};
#endif
......@@ -38,8 +38,8 @@ int main(int argc, char **argv)
try {
/*
UnitCube<Dune::OneDGrid,1> uc0;
UnitCube<Dune::YaspGrid<3,3>,1> uc1;
UnitCube<Dune::YaspGrid<2,2>,1> uc2;
UnitCube<Dune::YaspGrid<3>,1> uc1;
UnitCube<Dune::YaspGrid<2>,1> uc2;
UnitCube<Dune::SGrid<1,1>,1> uc3;
UnitCube<Dune::SGrid<2,2>,1> uc4;
UnitCube<Dune::SGrid<3,3>,1> uc5;
......
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