Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-metagrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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-metagrid
Commits
1fd12c8c
Commit
1fd12c8c
authored
4 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix][tests] disable level intersection iterator for conforming
grids.
parent
a2a1c5a9
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Update to 2.8
Pipeline
#30543
failed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/grid/test/checkcalls.cc
+4
-2
4 additions, 2 deletions
dune/grid/test/checkcalls.cc
dune/grid/test/test-spheregrid.cc
+21
-0
21 additions, 0 deletions
dune/grid/test/test-spheregrid.cc
with
25 additions
and
2 deletions
dune/grid/test/checkcalls.cc
+
4
−
2
View file @
1fd12c8c
...
...
@@ -53,6 +53,8 @@ void writeFile( const GridView& gridView )
template
<
class
GridType
>
void
checkSerial
(
GridType
&
grid
,
int
mxl
=
2
,
const
bool
display
=
false
)
{
const
bool
skipLevelIntersection
=
!
EnableLevelIntersectionIteratorCheck
<
GridType
>
::
v
;
// be careful, each global refine create 8 x maxlevel elements
std
::
cout
<<
" CHECKING: Macro"
<<
std
::
endl
;
gridcheck
(
grid
);
...
...
@@ -65,7 +67,7 @@ void checkSerial(GridType & grid, int mxl = 2, const bool display = false)
std
::
cout
<<
" CHECKING: Refined"
<<
std
::
endl
;
gridcheck
(
grid
);
std
::
cout
<<
" CHECKING: intersections"
<<
std
::
endl
;
checkIntersectionIterator
(
grid
);
checkIntersectionIterator
(
grid
,
skipLevelIntersection
);
}
// check also non-conform grids
...
...
@@ -80,7 +82,7 @@ void checkSerial(GridType & grid, int mxl = 2, const bool display = false)
checkGeometryInFather
(
grid
);
// check the intersection iterator and the geometries it returns
std
::
cout
<<
" CHECKING: intersections"
<<
std
::
endl
;
checkIntersectionIterator
(
grid
);
checkIntersectionIterator
(
grid
,
skipLevelIntersection
);
std
::
cout
<<
std
::
endl
<<
std
::
endl
;
}
...
...
This diff is collapsed.
Click to expand it.
dune/grid/test/test-spheregrid.cc
+
21
−
0
View file @
1fd12c8c
#include
<config.h>
#define DISABLE_DEPRECATED_METHOD_CHECK 1
#include
<iostream>
#include
<sstream>
#include
<string>
...
...
@@ -9,6 +12,12 @@
#include
<dune/grid/spheregrid.hh>
#include
<dune/grid/io/file/dgfparser/dgfwriter.hh>
#if HAVE_DUNE_ALUGRID
// use overloaded test because intersection test fails for manifold
// intersections, there is some discussion needed.
#include
<dune/alugrid/test/checkintersectionit.hh>
#endif
#include
"checkcalls.cc"
namespace
Dune
...
...
@@ -25,12 +34,24 @@ struct EnableLevelIntersectionIteratorCheck< Dune::AlbertaGrid< dim, dimworld >
static
const
bool
v
=
false
;
};
template
<
int
dim
,
int
dimworld
>
struct
EnableLevelIntersectionIteratorCheck
<
Dune
::
ALUGrid
<
dim
,
dimworld
,
Dune
::
simplex
,
Dune
::
conforming
>
>
{
static
const
bool
v
=
false
;
};
template
<
class
HostGrid
,
class
MapToSphere
>
struct
EnableLevelIntersectionIteratorCheck
<
Dune
::
SphereGrid
<
HostGrid
,
MapToSphere
>
>
{
static
const
bool
v
=
EnableLevelIntersectionIteratorCheck
<
HostGrid
>::
v
;
};
template
<
class
HostGrid
,
class
MapToSphere
>
struct
EnableLevelIntersectionIteratorCheck
<
const
Dune
::
SphereGrid
<
HostGrid
,
MapToSphere
>
>
{
static
const
bool
v
=
EnableLevelIntersectionIteratorCheck
<
HostGrid
>::
v
;
};
using
namespace
Dune
;
...
...
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