Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
agnumpde
dune-tectonic
Commits
eff58ab9
Commit
eff58ab9
authored
10 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Algorit] Grid: Finer coarse grid
parent
262192ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sand-wedge-data/mygrid.cc
+37
-2
37 additions, 2 deletions
src/sand-wedge-data/mygrid.cc
with
37 additions
and
2 deletions
src/sand-wedge-data/mygrid.cc
+
37
−
2
View file @
eff58ab9
...
...
@@ -52,7 +52,17 @@ template <class Grid> class GridConstructor {
auto
const
&
B
=
MyGeometry
::
B
;
auto
const
&
C
=
MyGeometry
::
C
;
unsigned
int
const
vc
=
3
;
auto
const
AB
=
midPoint
(
A
,
B
);
auto
const
AC
=
midPoint
(
A
,
C
);
auto
const
BC
=
midPoint
(
B
,
C
);
auto
const
AAB
=
midPoint
(
A
,
AB
);
auto
const
AAC
=
midPoint
(
A
,
AC
);
auto
const
ABB
=
midPoint
(
AB
,
B
);
auto
const
ABC
=
midPoint
(
AB
,
C
);
// the interiour point
auto
const
ACC
=
midPoint
(
AC
,
C
);
unsigned
int
const
vc
=
11
;
#if DIM == 3
Dune
::
FieldMatrix
<
double
,
2
*
vc
,
DIM
>
vertices
;
...
...
@@ -62,12 +72,28 @@ template <class Grid> class GridConstructor {
for
(
size_t
i
=
0
;
i
<
2
;
++
i
)
{
size_t
k
=
0
;
vertices
[
k
++
][
i
]
=
A
[
i
];
vertices
[
k
++
][
i
]
=
AAB
[
i
];
vertices
[
k
++
][
i
]
=
AB
[
i
];
vertices
[
k
++
][
i
]
=
ABB
[
i
];
vertices
[
k
++
][
i
]
=
B
[
i
];
vertices
[
k
++
][
i
]
=
AAC
[
i
];
vertices
[
k
++
][
i
]
=
AC
[
i
];
vertices
[
k
++
][
i
]
=
ABC
[
i
];
vertices
[
k
++
][
i
]
=
BC
[
i
];
vertices
[
k
++
][
i
]
=
ACC
[
i
];
vertices
[
k
++
][
i
]
=
C
[
i
];
assert
(
k
==
vc
);
#if DIM == 3
vertices
[
k
++
][
i
]
=
A
[
i
];
vertices
[
k
++
][
i
]
=
AAB
[
i
];
vertices
[
k
++
][
i
]
=
AB
[
i
];
vertices
[
k
++
][
i
]
=
ABB
[
i
];
vertices
[
k
++
][
i
]
=
B
[
i
];
vertices
[
k
++
][
i
]
=
AAC
[
i
];
vertices
[
k
++
][
i
]
=
AC
[
i
];
vertices
[
k
++
][
i
]
=
ABC
[
i
];
vertices
[
k
++
][
i
]
=
BC
[
i
];
vertices
[
k
++
][
i
]
=
ACC
[
i
];
vertices
[
k
++
][
i
]
=
C
[
i
];
assert
(
k
==
2
*
vc
);
#endif
...
...
@@ -95,7 +121,16 @@ template <class Grid> class GridConstructor {
#else
SimplexManager
sm
;
#endif
sm
.
addFromVertices
(
0
,
1
,
2
);
sm
.
addFromVertices
(
1
,
5
,
0
);
sm
.
addFromVertices
(
1
,
6
,
5
);
sm
.
addFromVertices
(
2
,
6
,
1
);
sm
.
addFromVertices
(
7
,
6
,
2
);
sm
.
addFromVertices
(
7
,
2
,
3
);
sm
.
addFromVertices
(
7
,
3
,
8
);
sm
.
addFromVertices
(
7
,
8
,
10
);
sm
.
addFromVertices
(
7
,
10
,
9
);
sm
.
addFromVertices
(
7
,
9
,
6
);
sm
.
addFromVertices
(
8
,
3
,
4
);
auto
const
&
simplices
=
sm
.
getSimplices
();
// sanity-check choices of simplices
...
...
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