Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ag-ohlberger
dune-community
dune-gdt
Commits
8e7bf003
Commit
8e7bf003
authored
8 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
update names and includes
parent
51d42e53
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
dune/gdt/playground/spaces/cg/dune-fem-localfunctions-wrapper.hh
+22
-22
22 additions, 22 deletions
...t/playground/spaces/cg/dune-fem-localfunctions-wrapper.hh
with
22 additions
and
22 deletions
dune/gdt/playground/spaces/cg/dune-fem-localfunctions-wrapper.hh
+
22
−
22
View file @
8e7bf003
...
...
@@ -3,8 +3,8 @@
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_PLAYGROUND_SPACES_CG_FEM_LOCALFUNCTIONS_HH
#define DUNE_GDT_PLAYGROUND_SPACES_CG_FEM_LOCALFUNCTIONS_HH
#ifndef DUNE_GDT_PLAYGROUND_SPACES_CG_
DUNE_
FEM_LOCALFUNCTIONS_
WRAPPER_
HH
#define DUNE_GDT_PLAYGROUND_SPACES_CG_
DUNE_
FEM_LOCALFUNCTIONS_
WRAPPER_
HH
#include
<memory>
...
...
@@ -34,22 +34,20 @@
namespace
Dune
{
namespace
GDT
{
namespace
Spaces
{
namespace
CG
{
#if HAVE_DUNE_FEM_LOCALFUNCTIONS
// forward, to be used in the traits and to allow for specialization
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
,
size_t
rangeDim
,
size_t
rangeDimCols
=
1
>
class
FemLocalfunctions
Based
class
Dune
FemLocalfunctions
CgSpaceWrapper
{
static_assert
(
Dune
::
AlwaysFalse
<
GridPartImp
>::
value
,
"Untested for these dimensions!"
);
};
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
,
size_t
rangeDim
,
size_t
rangeDimCols
>
class
FemLocalfunctions
Based
Traits
class
Dune
FemLocalfunctions
CgSpaceWrapper
Traits
{
public:
typedef
GridPartImp
GridPartType
;
...
...
@@ -64,7 +62,8 @@ private:
public:
typedef
RangeFieldImp
RangeFieldType
;
typedef
FemLocalfunctionsBased
<
GridPartType
,
polOrder
,
RangeFieldType
,
rangeDim
,
rangeDimCols
>
derived_type
;
typedef
DuneFemLocalfunctionsCgSpaceWrapper
<
GridPartType
,
polOrder
,
RangeFieldType
,
rangeDim
,
rangeDimCols
>
derived_type
;
private:
typedef
typename
GridPartType
::
GridType
GridType
;
...
...
@@ -73,7 +72,8 @@ private:
static_assert
(
dimDomain
==
1
||
(
Dune
::
Capabilities
::
hasSingleGeometryType
<
GridType
>::
topologyId
==
GenericGeometry
::
SimplexTopology
<
dimDomain
>::
type
::
id
),
"This space is only implemented for fully simplicial grids!"
);
typedef
FemLocalfunctionsBasedTraits
<
GridPartType
,
polOrder
,
RangeFieldType
,
rangeDim
,
rangeDimCols
>
ThisType
;
typedef
DuneFemLocalfunctionsCgSpaceWrapperTraits
<
GridPartType
,
polOrder
,
RangeFieldType
,
rangeDim
,
rangeDimCols
>
ThisType
;
public:
typedef
Dune
::
LagrangeLocalFiniteElement
<
Dune
::
EquidistantPointSet
,
dimDomain
,
DomainFieldType
,
RangeFieldType
>
...
...
@@ -97,21 +97,23 @@ public:
private:
template
<
class
G
,
int
p
,
class
R
,
size_t
r
,
size_t
rC
>
friend
class
FemLocalfunctions
Based
;
};
// class FemLocalfunctions
Based
Traits
friend
class
Dune
FemLocalfunctions
CgSpaceWrapper
;
};
// class
Dune
FemLocalfunctions
CgSpaceWrapper
Traits
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
class
FemLocalfunctionsBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
:
public
Spaces
::
CGInterface
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
class
DuneFemLocalfunctionsCgSpaceWrapper
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
:
public
Spaces
::
CGInterface
<
DuneFemLocalfunctionsCgSpaceWrapperTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
{
typedef
Spaces
::
CGInterface
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
typedef
Spaces
::
CGInterface
<
DuneFemLocalfunctionsCgSpaceWrapperTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
typedef
FemLocalfunctions
Based
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
typedef
Dune
FemLocalfunctions
CgSpaceWrapper
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
public:
typedef
FemLocalfunctions
Based
Traits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
Traits
;
typedef
Dune
FemLocalfunctions
CgSpaceWrapper
Traits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
Traits
;
typedef
typename
Traits
::
GridPartType
GridPartType
;
typedef
typename
Traits
::
GridViewType
GridViewType
;
...
...
@@ -141,7 +143,7 @@ private:
typedef
typename
Traits
::
BaseFunctionSetMapType
BaseFunctionSetMapType
;
public:
FemLocalfunctions
Based
(
GridPartType
gridP
)
Dune
FemLocalfunctions
CgSpaceWrapper
(
GridPartType
gridP
)
:
gridPart_
(
gridP
)
,
gridView_
(
gridPart_
.
gridView
()))
,
baseFunctionSetMap_
(
gridPart_
)
...
...
@@ -152,7 +154,7 @@ public:
{
}
FemLocalfunctions
Based
(
const
ThisType
&
other
)
=
default
;
Dune
FemLocalfunctions
CgSpaceWrapper
(
const
ThisType
&
other
)
=
default
;
ThisType
&
operator
=
(
const
ThisType
&
other
)
{
...
...
@@ -220,14 +222,14 @@ private:
const
MapperType
mapper_
;
mutable
Dune
::
DynamicVector
<
size_t
>
tmp_global_indices_
;
mutable
double
communicator_
;
};
// class FemLocalfunctions
Based
< ..., 1, 1 >
};
// class
Dune
FemLocalfunctions
CgSpaceWrapper
< ..., 1, 1 >
#else // HAVE_DUNE_FEM_LOCALFUNCTIONS
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
,
size_t
rangeDim
,
size_t
rangeDimCols
=
1
>
class
FemLocalfunctions
Based
class
Dune
FemLocalfunctions
CgSpaceWrapper
{
static_assert
(
Dune
::
AlwaysFalse
<
GridPartImp
>::
value
,
"You are missing dune-fem-localfunctions!"
);
};
...
...
@@ -236,9 +238,7 @@ class FemLocalfunctionsBased
#endif // HAVE_DUNE_FEM_LOCALFUNCTIONS
}
// namespace CG
}
// namespace Spaces
}
// namespace GDT
}
// namespace Dune
#endif // DUNE_GDT_PLAYGROUND_SPACES_CG_FEM_LOCALFUNCTIONS_HH
#endif // DUNE_GDT_PLAYGROUND_SPACES_CG_
DUNE_
FEM_LOCALFUNCTIONS_
WRAPPER_
HH
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