[Dune-devel] [Dune-Commit] [Commit] dune-grid - 6041288: use new gridfactory based hybrid testgrid in ug's grid test

Oliver Sander oliver.sander at tu-dresden.de
Wed Oct 14 14:00:31 CEST 2015


Hi Tobias,
thanks for these patches.  For the UG tests, I actually planned to use the gmsh
versions of the test grids (in doc/grids/gmsh).  As mentioned, having C++ code
in doc/grids/gridfactory is problematic, because it is outside of our standard include paths.
One should therefore only use it if really necessary.  For the UGGrid tests this
is not the case.
Best,
Oliver

Am 14.10.2015 um 13:53 schrieb Tobias Malkmus:
> New commit, appeared at Wed Oct 14 13:53:42 2015 +0200
> as part of the following ref changes:
> 
>     branch refs/heads/feature/FS1474-add-insertionindex-check    updated from 7d9f17f -> 5719810
> 
> Browsable version: http://cgit.dune-project.org/repositories/dune-grid/commit/?id=604128817ed45c01ec18ff6b125a6169bca35e38
> 
> ======================================================================
> 
> commit 604128817ed45c01ec18ff6b125a6169bca35e38
> Author: Tobias Malkmus <tomalk at mathematik.uni-freiburg.de>
> Date:   Wed Oct 14 12:22:25 2015 +0200
> 
>     use new gridfactory based hybrid testgrid in ug's grid test
>     
>     Patch 9e74640b6b25604d7d61993e7be02a137ae790c0 and this one replaces the usage of the
>     file doc/grid/gridfactory/hybridtestgrids.hh
>     It can be marked as deprecated.
> 
>  dune/grid/test/test-ug.cc | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
> 
> 
> diff --git a/dune/grid/test/test-ug.cc b/dune/grid/test/test-ug.cc
> index d6a7603..ffee21c 100644
> --- a/dune/grid/test/test-ug.cc
> +++ b/dune/grid/test/test-ug.cc
> @@ -12,7 +12,7 @@
>   */
>  
>  #include <dune/grid/uggrid.hh>
> -#include <doc/grids/gridfactory/hybridtestgrids.hh>
> +#include <doc/grids/gridfactory/testgrids.hh>
>  
>  #include "gridcheck.hh"
>  #include "checkcommunicate.hh"
> @@ -168,8 +168,13 @@ void generalTests(bool greenClosure)
>    //   Make some grids for testing
>    // //////////////////////////////////////////////////////////
>  
> -  std::unique_ptr<Dune::UGGrid<2> > grid2d(make2DHybridTestGrid<Dune::UGGrid<2> >());
> -  std::unique_ptr<Dune::UGGrid<3> > grid3d(make3DHybridTestGrid<Dune::UGGrid<3> >());
> +  Dune::GridFactory< Dune::UGGrid<2> > factory2d;
> +  Dune::TestGrids::hybrid2d.addToGridFactory( factory2d );
> +  std::unique_ptr<Dune::UGGrid<2> > grid2d( factory2d.createGrid() );
> +
> +  Dune::GridFactory< Dune::UGGrid<3> > factory3d;
> +  Dune::TestGrids::hybrid3d.addToGridFactory( factory3d );
> +  std::unique_ptr<Dune::UGGrid<3> > grid3d( factory3d.createGrid() );
>  
>    // Switch of the green closure, if requested
>    if (!greenClosure) {
> 
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
> 





More information about the Dune-devel mailing list