diff --git a/dumux/multidomain/glue.hh b/dumux/multidomain/glue.hh index 21e605141aa4a2b2a4b8b1d77efe6913ec6b3929..e882fb9f2f8f7a8be2e64a01ece6601e2f238bf4 100644 --- a/dumux/multidomain/glue.hh +++ b/dumux/multidomain/glue.hh @@ -228,6 +228,22 @@ private: Intersections intersections_; }; +/*! + * \ingroup MultiDomain + * \brief Creates the glue object containing the intersections + * between two grids obtained from given grid geometries. + * \param domainGridGeometry The grid geometry of the domain + * \param targetGridGeometry The grid geometry of the target domain + * \return The glue object containing the intersections + */ +template<class DomainGG, class TargetGG> +MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView, + typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > +makeGlue(const DomainGG& domainGridGeometry, const TargetGG& targetGridGeometry) +{ + return {domainGridGeometry.boundingBoxTree(), targetGridGeometry.boundingBoxTree()}; +} + } // end namespace Dumux #endif