Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-multidomaingrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
extensions
dune-multidomaingrid
Commits
2da6b536
Commit
2da6b536
authored
3 years ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/add-entity-iterator-capabilities' into 'master'
Add entity iterator capabilities See merge request
!28
parents
2b488e8b
d0606cff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!28
Add entity iterator capabilities
Pipeline
#38152
passed
3 years ago
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
dune/grid/multidomaingrid.hh
+10
-0
10 additions, 0 deletions
dune/grid/multidomaingrid.hh
test/testparallel.cc
+20
-0
20 additions, 0 deletions
test/testparallel.cc
with
32 additions
and
0 deletions
CHANGELOG.md
+
2
−
0
View file @
2da6b536
...
...
@@ -17,6 +17,8 @@ Changes
*
Fix bug where lelve index sets where not updated after grid adaptation.
*
Add entity iterator capabilities
### MultiDomainGrid 2.7
...
...
This diff is collapsed.
Click to expand it.
dune/grid/multidomaingrid.hh
+
10
−
0
View file @
2da6b536
...
...
@@ -32,6 +32,11 @@ namespace Capabilities {
static
const
bool
v
=
hasEntity
<
HostGrid
,
codim
>::
v
;
};
template
<
class
HostGrid
,
typename
MDGridTraits
,
int
codim
>
struct
hasEntityIterator
<
MultiDomainGrid
<
HostGrid
,
MDGridTraits
>
,
codim
>
{
static
const
bool
v
=
hasEntityIterator
<
HostGrid
,
codim
>::
v
;
};
template
<
class
HostGrid
,
typename
MDGridTraits
,
int
codim
>
struct
canCommunicate
<
MultiDomainGrid
<
HostGrid
,
MDGridTraits
>
,
codim
>
...
...
@@ -103,6 +108,11 @@ namespace Capabilities {
static
const
bool
v
=
hasEntity
<
MDGrid
,
codim
>::
v
;
};
template
<
class
MDGrid
,
int
codim
>
struct
hasEntityIterator
<
Dune
::
mdgrid
::
subdomain
::
SubDomainGrid
<
MDGrid
>
,
codim
>
{
static
const
bool
v
=
hasEntityIterator
<
MDGrid
,
codim
>::
v
;
};
template
<
class
MDGrid
,
int
codim
>
struct
canCommunicate
<
Dune
::
mdgrid
::
subdomain
::
SubDomainGrid
<
MDGrid
>
,
codim
>
...
...
This diff is collapsed.
Click to expand it.
test/testparallel.cc
+
20
−
0
View file @
2da6b536
...
...
@@ -13,6 +13,10 @@
#include
<algorithm>
#include
<iterator>
#if HAVE_UG
#include
<dune/grid/uggrid.hh>
#endif
template
<
typename
GV
,
typename
DataVector
>
class
RankTransfer
:
public
Dune
::
CommDataHandleIF
<
RankTransfer
<
GV
,
DataVector
>
,
...
...
@@ -210,6 +214,22 @@ int main(int argc, char** argv)
testGrid
(
hostgrid
,
"YaspGrid_2"
,
mpihelper
);
}
{
#if HAVE_UG
typedef
Dune
::
UGGrid
<
2
>
HostGrid
;
Dune
::
FieldVector
<
double
,
2
>
lower_left
(
0.0
);
Dune
::
FieldVector
<
double
,
2
>
upper_right
(
1.0
);
std
::
array
<
unsigned
int
,
2
>
n
=
{{
uint
(
N
),
uint
(
N
)}};
auto
gridPtr
=
Dune
::
StructuredGridFactory
<
HostGrid
>::
createCubeGrid
(
lower_left
,
upper_right
,
n
);
gridPtr
->
loadBalance
();
testGrid
(
*
gridPtr
,
"UGGrid_2"
,
mpihelper
);
#endif
}
}
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
"DUNE ERROR: "
<<
e
.
what
()
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment