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
3712a09d
Commit
3712a09d
authored
12 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make the order of the higher-order function a parameter
[[Imported from SVN: r8866]]
parent
2e36b882
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
test/nestednesstest.cc
+8
-7
8 additions, 7 deletions
test/nestednesstest.cc
with
8 additions
and
7 deletions
test/nestednesstest.cc
+
8
−
7
View file @
3712a09d
...
...
@@ -31,10 +31,10 @@ double diameter(const std::vector<TargetSpace>& v)
return
d
;
}
template
<
int
domainDim
>
template
<
int
domainDim
,
int
elementOrder
>
std
::
vector
<
FieldVector
<
double
,
domainDim
>
>
lagrangeNodes
(
const
GeometryType
&
type
)
{
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
2
>
feCache
;
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
elementOrder
>
feCache
;
std
::
vector
<
FieldVector
<
double
,
domainDim
>
>
result
(
feCache
.
get
(
type
).
localBasis
().
size
());
// evaluate loF at the Lagrange points of the second-order function
...
...
@@ -52,15 +52,15 @@ std::vector<FieldVector<double,domainDim> > lagrangeNodes(const GeometryType& ty
}
template
<
int
domainDim
,
class
TargetSpace
>
template
<
int
domainDim
,
class
TargetSpace
,
int
highElementOrder
>
void
testNestedness
(
const
LocalGeodesicFEFunction
<
domainDim
,
double
,
typename
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
1
>::
FiniteElementType
,
TargetSpace
>&
loF
)
{
// Make higher order local gfe function
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
2
>
feCache
;
typedef
typename
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
2
>::
FiniteElementType
LocalFiniteElement
;
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
highElementOrder
>
feCache
;
typedef
typename
PQkLocalFiniteElementCache
<
double
,
double
,
domainDim
,
highElementOrder
>::
FiniteElementType
LocalFiniteElement
;
// Get the Lagrange nodes of the high-order function
std
::
vector
<
FieldVector
<
double
,
domainDim
>
>
lNodes
=
lagrangeNodes
<
domainDim
>
(
loF
.
type
());
std
::
vector
<
FieldVector
<
double
,
domainDim
>
>
lNodes
=
lagrangeNodes
<
domainDim
,
highElementOrder
>
(
loF
.
type
());
// Evaluate low-order function at the high-order nodal values
std
::
vector
<
TargetSpace
>
nodalValues
(
lNodes
.
size
());
...
...
@@ -140,7 +140,8 @@ void test(const GeometryType& element)
LocalGeodesicFEFunction
<
domainDim
,
double
,
LocalFiniteElement
,
TargetSpace
>
f
(
feCache
.
get
(
element
),
corners
);
testNestedness
<
domainDim
>
(
f
);
static
const
int
highElementOrder
=
2
;
testNestedness
<
domainDim
,
TargetSpace
,
highElementOrder
>
(
f
);
}
...
...
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