Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-curvedgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
iwr
dune-curvedgrid
Commits
41c5b9cc
Commit
41c5b9cc
authored
3 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-test/cylinder' into 'master'
Add test for a cylinder See merge request
!16
parents
5962aaf7
0879c827
No related branches found
Branches containing commit
No related tags found
1 merge request
!16
Add test for a cylinder
Pipeline
#7961
passed
3 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/grids/cylinder.msh
+29
-0
29 additions, 0 deletions
doc/grids/cylinder.msh
dune/curvedgrid/test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
dune/curvedgrid/test/CMakeLists.txt
dune/curvedgrid/test/convergencetest.cc
+7
-1
7 additions, 1 deletion
dune/curvedgrid/test/convergencetest.cc
with
37 additions
and
2 deletions
doc/grids/cylinder.msh
0 → 100644
+
29
−
0
View file @
41c5b9cc
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
10
1 1.0 0.0 0.0
2 0.309016994375 0.951056516295 0.0
3 -0.809016994375 0.587785252292 0.0
4 -0.809016994375 -0.587785252292 0.0
5 0.309016994375 -0.951056516295 0.0
6 1.0 0.0 1.0
7 0.309016994375 0.951056516295 1.0
8 -0.809016994375 0.587785252292 1.0
9 -0.809016994375 -0.587785252292 1.0
10 0.309016994375 -0.951056516295 1.0
$EndNodes
$Elements
10
1 2 0 1 2 6
2 2 0 2 7 6
3 2 0 2 3 8
4 2 0 2 8 7
5 2 0 3 4 8
6 2 0 4 9 8
7 2 0 4 5 10
8 2 0 4 10 9
9 2 0 5 1 6
10 2 0 5 6 10
$EndElements
This diff is collapsed.
Click to expand it.
dune/curvedgrid/test/CMakeLists.txt
+
1
−
1
View file @
41c5b9cc
foreach
(
geometry RANGE 1
3
)
foreach
(
geometry RANGE 1
4
)
foreach
(
order RANGE 1 4
)
dune_add_test
(
NAME convergence-g
${
geometry
}
-p
${
order
}
SOURCES convergencetest.cc
...
...
This diff is collapsed.
Click to expand it.
dune/curvedgrid/test/convergencetest.cc
+
7
−
1
View file @
41c5b9cc
...
...
@@ -26,6 +26,7 @@
// 1 .. Sphere
// 2 .. Ellipsoid
// 3 .. Torus
// 4 .. Cylinder
#ifndef GEOMETRY_TYPE
#define GEOMETRY_TYPE 1
#endif
...
...
@@ -36,8 +37,10 @@
#include
<dune/curvedgrid/geometries/ellipsoid.hh>
#elif GEOMETRY_TYPE == 3
#include
<dune/curvedgrid/geometries/torus.hh>
#elif GEOMETRY_TYPE == 4
#include
<dune/curvedgrid/geometries/cylinder.hh>
#else
#error "Unknown GEOMETRY_TYPE. Must bei either 1, 2, or
3
"
#error "Unknown GEOMETRY_TYPE. Must bei either 1, 2,
3,
or
4
"
#endif
// polynomial order of geometry
...
...
@@ -66,6 +69,9 @@ int main (int argc, char** argv)
#elif GEOMETRY_TYPE == 3
std
::
unique_ptr
<
HostGrid
>
hostGrid
=
GmshReader
<
HostGrid
>::
read
(
DUNE_GRID_PATH
"torus2.msh"
);
auto
gridFct
=
torusGridFunction
<
HostGrid
>
(
2.0
,
1.0
);
#elif GEOMETRY_TYPE == 4
std
::
unique_ptr
<
HostGrid
>
hostGrid
=
GmshReader
<
HostGrid
>::
read
(
DUNE_GRID_PATH
"cylinder.msh"
);
auto
gridFct
=
cylinderGridFunction
<
HostGrid
>
(
1.0
);
#endif
CurvedGrid
grid
(
*
hostGrid
,
gridFct
,
order
);
...
...
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