[dune-functions] interface check for GridViewFunction

Carsten Gräser graeser at mi.fu-berlin.de
Sun Sep 20 00:04:33 CEST 2015


Am 19.09.2015 um 23:40 schrieb Christian Engwer:
> Dear all,
> 
> I lost track... how do I test, whether my implementation fulfills the
> GridViewFunction interface?

There's no dedicated check for GridViewFunctions. But you can use the
concept check for grid functions wrt to the GridViewEntitySet. Assume
that you have given types Function/Range/GridView you can use

 using Coordinate = GridView::Codim<0> ::Geometry::GlobalCoordinate;
 using Signature = Range(Coordinate);
 using EntitySet = Dune::Functions::GridViewEntitySet<GridView, 0>;
 bool isGridViewFunction
        = Dune::Functions::Concept::isGridFunction<Function, Signature, EntitySet>();

Maybe I'll add this as a shortcut to functionconcepts.

Best,
Carsten

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-functions/attachments/20150920/fcf98a40/attachment.sig>


More information about the dune-functions mailing list