version 3.11-dev
Loading...
Searching...
No Matches
distributedglue.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
13#ifndef DUMUX_MULTIDOMAIN_DISTRIBUTED_GLUE_HH
14#define DUMUX_MULTIDOMAIN_DISTRIBUTED_GLUE_HH
15
16#include <memory>
17
20
21namespace Dumux {
22
27template<class DomainGridView, class TargetGridView, class DomainMapper, class TargetMapper>
31>;
32
42template<class DomainGG, class TargetGG>
43DistributedMultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
44 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper >
45makeDistributedGlue(const DomainGG& domainGridGeometry, const TargetGG& targetGridGeometry)
46{
49
50 DistributedMultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
51 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > glue;
52 glue.build(
53 std::make_shared<DomainSet>(domainGridGeometry.gridView(), domainGridGeometry.elementMapper()),
54 std::make_shared<TargetSet>(targetGridGeometry.gridView(), targetGridGeometry.elementMapper())
55 );
56 return glue;
57}
58
59} // end namespace Dumux
60
61#endif
A class representing the intersection entities of two distributed geometric entity sets.
Definition distributedintersectionentityset.hh:46
void build(std::shared_ptr< const DomainEntitySet > domainSet, std::shared_ptr< const TargetEntitySet > targetSet)
Build the intersections from two distributed entity sets.
Definition distributedintersectionentityset.hh:138
An interface for a set of geometric entities based on a GridView.
Definition geometricentityset.hh:38
A class representing the intersection entities of two distributed geometric entity sets.
An interface for a set of geometric entities.
DistributedIntersectionEntitySet< GridViewGeometricEntitySet< DomainGridView, 0, DomainMapper >, GridViewGeometricEntitySet< TargetGridView, 0, TargetMapper > > DistributedMultiDomainGlue
A convenience alias for the DistributedIntersectionEntitySet of two GridViewGeometricEntitySets.
Definition distributedglue.hh:28
DistributedMultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView, typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > makeDistributedGlue(const DomainGG &domainGridGeometry, const TargetGG &targetGridGeometry)
Creates a distributed glue object containing the intersections between two distributed grids obtained...
Definition distributedglue.hh:45
Definition adapt.hh:17