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
febe2c59
Commit
febe2c59
authored
10 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[spaces.cg] derive from CGInterface, refs
#14
parent
a85232e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/gdt/playground/spaces/cg/fem-localfunctions.hh
+17
-7
17 additions, 7 deletions
dune/gdt/playground/spaces/cg/fem-localfunctions.hh
dune/gdt/spaces/cg/fem.hh
+18
-6
18 additions, 6 deletions
dune/gdt/spaces/cg/fem.hh
dune/gdt/spaces/cg/pdelab.hh
+15
-5
15 additions, 5 deletions
dune/gdt/spaces/cg/pdelab.hh
with
50 additions
and
18 deletions
dune/gdt/playground/spaces/cg/fem-localfunctions.hh
+
17
−
7
View file @
febe2c59
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include
<dune/gdt/mapper/fem.hh>
#include
<dune/gdt/mapper/fem.hh>
#include
<dune/gdt/basefunctionset/fem-localfunctions.hh>
#include
<dune/gdt/basefunctionset/fem-localfunctions.hh>
#include
<dune/gdt/spaces/c
ontinuouslagrange/bas
e.hh>
#include
<dune/gdt/spaces/c
g/interfac
e.hh>
namespace
Dune
{
namespace
Dune
{
namespace
GDT
{
namespace
GDT
{
...
@@ -104,13 +104,11 @@ private:
...
@@ -104,13 +104,11 @@ private:
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
class
FemLocalfunctionsBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
class
FemLocalfunctionsBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
:
public
Spaces
::
ContinuousLagrangeBase
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
:
public
Spaces
::
CGInterface
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
1
>
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
{
{
typedef
Spaces
::
ContinuousLagrangeBase
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
typedef
Spaces
::
CGInterface
<
FemLocalfunctionsBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
1
>
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
typedef
FemLocalfunctionsBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
typedef
FemLocalfunctionsBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
public:
public:
...
@@ -137,6 +135,8 @@ public:
...
@@ -137,6 +135,8 @@ public:
typedef
typename
Traits
::
EntityType
EntityType
;
typedef
typename
Traits
::
EntityType
EntityType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
using
typename
BaseType
::
DomainType
;
using
typename
BaseType
::
BoundaryInfoType
;
private:
private:
typedef
typename
Traits
::
BaseFunctionSetMapType
BaseFunctionSetMapType
;
typedef
typename
Traits
::
BaseFunctionSetMapType
BaseFunctionSetMapType
;
...
@@ -193,6 +193,16 @@ public:
...
@@ -193,6 +193,16 @@ public:
return
mapper_
;
return
mapper_
;
}
}
std
::
vector
<
DomainType
>
lagrange_points
(
const
EntityType
&
entity
)
const
{
return
BaseType
::
lagrange_points_order_1
(
entity
);
}
std
::
set
<
size_t
>
local_dirichlet_DoFs
(
const
EntityType
&
entity
,
const
BoundaryInfoType
&
boundaryInfo
)
const
{
return
BaseType
::
local_dirichlet_DoFs_order_1
(
entity
,
boundaryInfo
);
}
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
{
{
return
BaseFunctionSetType
(
baseFunctionSetMap_
,
entity
);
return
BaseFunctionSetType
(
baseFunctionSetMap_
,
entity
);
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/spaces/cg/fem.hh
+
18
−
6
View file @
febe2c59
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include
"../../mapper/fem.hh"
#include
"../../mapper/fem.hh"
#include
"../../basefunctionset/fem.hh"
#include
"../../basefunctionset/fem.hh"
#include
"
bas
e.hh"
#include
"
interfac
e.hh"
#include
"../constraints.hh"
#include
"../constraints.hh"
namespace
Dune
{
namespace
Dune
{
...
@@ -74,14 +74,14 @@ public:
...
@@ -74,14 +74,14 @@ public:
};
// class SpaceWrappedFemContinuousLagrangeTraits
};
// class SpaceWrappedFemContinuousLagrangeTraits
// untested for the vector-valued case, especially Spaces::C
ontinuousLagrangeBas
e
// untested for the vector-valued case, especially Spaces::C
GInterfac
e
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
class
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
class
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
:
public
Spaces
::
C
ontinuousLagrangeBas
e
<
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
:
public
Spaces
::
C
GInterfac
e
<
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
{
{
typedef
Spaces
::
C
ontinuousLagrangeBas
e
<
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
typedef
Spaces
::
C
GInterfac
e
<
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridPartImp
::
dimension
,
GridPartImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
RangeFieldImp
,
1
,
1
>
BaseType
;
typedef
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
typedef
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
public:
public:
...
@@ -109,6 +109,8 @@ public:
...
@@ -109,6 +109,8 @@ public:
typedef
typename
Traits
::
CommunicatorType
CommunicatorType
;
typedef
typename
Traits
::
CommunicatorType
CommunicatorType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
using
typename
BaseType
::
DomainType
;
using
typename
BaseType
::
BoundaryInfoType
;
explicit
FemBased
(
GridPartType
gridP
)
explicit
FemBased
(
GridPartType
gridP
)
:
gridPart_
(
new
GridPartType
(
gridP
))
:
gridPart_
(
new
GridPartType
(
gridP
))
...
@@ -146,6 +148,16 @@ public:
...
@@ -146,6 +148,16 @@ public:
return
*
mapper_
;
return
*
mapper_
;
}
}
std
::
vector
<
DomainType
>
lagrange_points
(
const
EntityType
&
entity
)
const
{
return
BaseType
::
lagrange_points_order_1
(
entity
);
}
std
::
set
<
size_t
>
local_dirichlet_DoFs
(
const
EntityType
&
entity
,
const
BoundaryInfoType
&
boundaryInfo
)
const
{
return
BaseType
::
local_dirichlet_DoFs_order_1
(
entity
,
boundaryInfo
);
}
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
{
{
return
BaseFunctionSetType
(
*
backend_
,
entity
);
return
BaseFunctionSetType
(
*
backend_
,
entity
);
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/spaces/cg/pdelab.hh
+
15
−
5
View file @
febe2c59
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include
"../../mapper/pdelab.hh"
#include
"../../mapper/pdelab.hh"
#include
"../../basefunctionset/pdelab.hh"
#include
"../../basefunctionset/pdelab.hh"
#include
"
bas
e.hh"
#include
"
interfac
e.hh"
namespace
Dune
{
namespace
Dune
{
...
@@ -111,11 +111,11 @@ private:
...
@@ -111,11 +111,11 @@ private:
template
<
class
GridViewImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
template
<
class
GridViewImp
,
int
polynomialOrder
,
class
RangeFieldImp
>
class
PdelabBased
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
class
PdelabBased
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
:
public
Spaces
::
C
ontinuousLagrangeBas
e
<
PdelabBasedTraits
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
:
public
Spaces
::
C
GInterfac
e
<
PdelabBasedTraits
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridViewImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
GridViewImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
{
{
typedef
Spaces
::
C
ontinuousLagrangeBas
e
<
PdelabBasedTraits
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
typedef
Spaces
::
C
GInterfac
e
<
PdelabBasedTraits
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
,
GridViewImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
GridViewImp
::
dimension
,
RangeFieldImp
,
1
,
1
>
BaseType
;
typedef
PdelabBased
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
typedef
PdelabBased
<
GridViewImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
ThisType
;
public:
public:
...
@@ -210,6 +210,16 @@ public:
...
@@ -210,6 +210,16 @@ public:
return
mapper_
;
return
mapper_
;
}
}
std
::
vector
<
DomainType
>
lagrange_points
(
const
EntityType
&
entity
)
const
{
return
BaseType
::
lagrange_points_order_1
(
entity
);
}
std
::
set
<
size_t
>
local_dirichlet_DoFs
(
const
EntityType
&
entity
,
const
BoundaryInfoType
&
boundaryInfo
)
const
{
return
BaseType
::
local_dirichlet_DoFs_order_1
(
entity
,
boundaryInfo
);
}
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
{
{
return
BaseFunctionSetType
(
backend_
,
entity
);
return
BaseFunctionSetType
(
backend_
,
entity
);
...
...
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