Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
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
Container Registry
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
Praetorius, Simon
dune-gfe
Commits
c733ff17
Commit
c733ff17
authored
13 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
support third-order FE spaces
[[Imported from SVN: r8236]]
parent
bff08322
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
harmonicmaps-eoc.cc
+13
-8
13 additions, 8 deletions
harmonicmaps-eoc.cc
with
13 additions
and
8 deletions
harmonicmaps-eoc.cc
+
13
−
8
View file @
c733ff17
...
...
@@ -2,7 +2,8 @@
//#define HARMONIC_ENERGY_FD_GRADIENT
//#define HARMONIC_ENERGY_FD_INNER_GRADIENT
//#define HIGHER_ORDER
#define THIRD_ORDER
//#define SECOND_ORDER
#include
<dune/common/bitsetvector.hh>
#include
<dune/common/parametertree.hh>
...
...
@@ -88,7 +89,9 @@ void solve (const shared_ptr<GridType>& grid,
allNodes
.
setAll
();
BoundaryPatch
<
typename
GridType
::
LeafGridView
>
dirichletBoundary
(
grid
->
leafView
(),
allNodes
);
#ifdef HIGHER_ORDER
#if defined THIRD_ORDER
typedef
P3NodalBasis
<
typename
GridType
::
LeafGridView
,
double
>
FEBasis
;
#elif defined SECOND_ORDER
typedef
P2NodalBasis
<
typename
GridType
::
LeafGridView
,
double
>
FEBasis
;
#else
typedef
P1NodalBasis
<
typename
GridType
::
LeafGridView
,
double
>
FEBasis
;
...
...
@@ -202,7 +205,7 @@ int main (int argc, char *argv[]) try
for
(
int
j
=
0
;
j
<
referenceSolution
.
size
();
j
++
)
xEmbedded
[
j
]
=
referenceSolution
[
j
].
globalCoordinates
();
#if
n
def
HIGHER
_ORDER
#if
!
def
ined THIRD_ORDER && ! defined SECOND
_ORDER
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
amiramesh
.
addGrid
(
referenceGrid
->
leafView
());
amiramesh
.
addVertexData
(
xEmbedded
,
referenceGrid
->
leafView
());
...
...
@@ -213,7 +216,9 @@ int main (int argc, char *argv[]) try
// Compute mass matrix and laplace matrix to emulate L2 and H1 norms
// //////////////////////////////////////////////////////////////////////
#ifdef HIGHER_ORDER
#ifdef THIRD_ORDER
typedef
P3NodalBasis
<
GridType
::
LeafGridView
,
double
>
FEBasis
;
#elif defined SECOND_ORDER
typedef
P2NodalBasis
<
GridType
::
LeafGridView
,
double
>
FEBasis
;
#else
typedef
P1NodalBasis
<
GridType
::
LeafGridView
,
double
>
FEBasis
;
...
...
@@ -264,7 +269,7 @@ int main (int argc, char *argv[]) try
for
(
int
j
=
0
;
j
<
solution
.
size
();
j
++
)
xEmbedded
[
j
]
=
solution
[
j
].
globalCoordinates
();
#if
ndef HIGHER
_ORDER
#if
! defined THIRD_ORDER && ! defined SECOND
_ORDER
LeafAmiraMeshWriter
<
GridType
>
amiramesh
;
amiramesh
.
addGrid
(
grid
->
leafView
());
amiramesh
.
addVertexData
(
xEmbedded
,
grid
->
leafView
());
...
...
@@ -273,10 +278,10 @@ int main (int argc, char *argv[]) try
// Prolong solution to the very finest grid
for
(
int
j
=
i
;
j
<
numLevels
;
j
++
)
#ifndef HIGHER_ORDER
geodesicFEFunctionAdaptor
(
*
grid
,
solution
);
#else
#if defined THIRD_ORDER || defined SECOND_ORDER
higherOrderGFEFunctionAdaptor
(
*
grid
,
solution
);
#else
geodesicFEFunctionAdaptor
(
*
grid
,
solution
);
#endif
// Interpret TargetSpace as isometrically embedded into an R^m, because this is
// how the corresponding Sobolev spaces are defined.
...
...
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