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
e445e22c
Commit
e445e22c
authored
9 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[spaces.fv.defaultproduct] do not derive from Default space
parent
e425aa18
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/gdt/spaces/fv/default.hh
+1
-1
1 addition, 1 deletion
dune/gdt/spaces/fv/default.hh
dune/gdt/spaces/fv/defaultproduct.hh
+43
-35
43 additions, 35 deletions
dune/gdt/spaces/fv/defaultproduct.hh
dune/gdt/spaces/fv/interface.hh
+1
-0
1 addition, 0 deletions
dune/gdt/spaces/fv/interface.hh
with
45 additions
and
36 deletions
dune/gdt/spaces/fv/default.hh
+
1
−
1
View file @
e445e22c
...
...
@@ -128,7 +128,7 @@ public:
return
*
communicator_
;
}
pr
otec
te
d
:
pr
iva
te
:
const
GridViewType
grid_view_
;
const
MapperType
mapper_
;
const
std
::
unique_ptr
<
CommunicatorType
>
communicator_
;
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/spaces/fv/defaultproduct.hh
+
43
−
35
View file @
e445e22c
...
...
@@ -88,69 +88,77 @@ public:
}
// namespace internal
/** TODO: delete copy constructor again and uncomment move constructor? */
template
<
class
GridViewImp
,
class
RangeFieldImp
,
size_t
rangeDim
>
class
DefaultProduct
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
:
public
Dune
::
GDT
::
Spaces
::
ProductFVInterface
<
internal
::
DefaultProductTraits
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
,
GridViewImp
::
dimension
,
rangeDim
,
1
>
,
public
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
GridViewImp
::
dimension
,
rangeDim
,
1
>
{
typedef
DefaultProduct
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
ThisType
;
typedef
Dune
::
GDT
::
Spaces
::
ProductFVInterface
<
internal
::
DefaultProductTraits
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
,
GridViewImp
::
dimension
,
rangeDim
,
1
>
Interfac
eType
;
typedef
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
Bas
eType
;
GridViewImp
::
dimension
,
rangeDim
,
1
>
Bas
eType
;
typedef
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
DefaultFVSpac
eType
;
public:
using
typename
InterfaceType
::
Traits
;
using
typename
InterfaceType
::
GridViewType
;
using
typename
InterfaceType
::
BackendType
;
using
typename
InterfaceType
::
MapperType
;
using
typename
InterfaceType
::
EntityType
;
using
typename
InterfaceType
::
BaseFunctionSetType
;
using
typename
InterfaceType
::
RangeFieldType
;
using
typename
InterfaceType
::
CommunicatorType
;
using
typename
InterfaceType
::
SpaceTupleType
;
using
typename
BaseType
::
Traits
;
using
typename
BaseType
::
GridViewType
;
using
typename
BaseType
::
BackendType
;
using
typename
BaseType
::
MapperType
;
using
typename
BaseType
::
EntityType
;
using
typename
BaseType
::
BaseFunctionSetType
;
using
typename
BaseType
::
CommunicatorType
;
typedef
typename
Traits
::
FactorSpaceType
FactorSpaceType
;
DefaultProduct
(
GridViewType
gv
)
:
BaseType
(
gv
)
,
factor_space_
(
grid_view_
)
:
default_fv_space_
(
gv
)
,
product_fv_mapper_
(
gv
)
,
factor_space_
(
gv
)
{
}
DefaultProduct
(
const
ThisType
&
other
)
:
BaseType
(
other
)
,
factor_space_
(
other
.
factor_space_
)
// DefaultProduct(ThisType&& source) = default;
// ThisType& operator=(const ThisType& other) = delete;
// ThisType& operator=(ThisType&& source) = delete;
// These methods are required by ProductSpaceInterface
template
<
size_t
ii
>
const
FactorSpaceType
factor
()
const
{
return
factor_space_
;
}
DefaultProduct
(
ThisType
&&
source
)
=
default
;
ThisType
&
operator
=
(
const
ThisType
&
other
)
=
delete
;
const
MapperType
&
mapper
()
const
{
return
product_fv_mapper_
;
}
ThisType
&
operator
=
(
ThisType
&&
source
)
=
delete
;
// The remaining methods are redirected to Default
const
GridViewType
&
grid_view
()
const
{
return
default_fv_space_
.
grid_view
();
}
const
MapperType
&
product_mapper
()
const
const
BackendType
&
backend
()
const
{
return
mapper_
;
return
default_fv_space_
.
backend
()
;
}
template
<
size_t
ii
>
const
FactorSpaceType
factor
()
const
BaseFunctionSetType
base_function_set
(
const
EntityType
&
entity
)
const
{
return
factor_space_
;
return
default_fv_space_
.
base_function_set
(
entity
)
;
}
using
BaseType
::
grid_view
;
using
BaseType
::
backend
;
using
BaseType
::
base_function_set
;
using
BaseType
::
communicator
;
CommunicatorType
&
communicator
()
const
{
return
default_fv_space_
.
communicator
()
;
}
private
:
using
BaseType
::
grid_view_
;
using
BaseType
::
mapper_
;
const
DefaultFVSpaceType
default_fv_space_
;
const
MapperType
product_fv_mapper_
;
const
FactorSpaceType
factor_space_
;
};
// class DefaultProduct< ..., 1 >
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/spaces/fv/interface.hh
+
1
−
0
View file @
e445e22c
...
...
@@ -50,6 +50,7 @@ class ProductFVInterface : public ProductSpaceInterface<ImpTraits, domainDim, ra
typedef
ProductSpaceInterface
<
ImpTraits
,
domainDim
,
rangeDim
,
rangeDimCols
>
BaseType
;
public:
using
typename
BaseType
::
RangeFieldType
;
using
BaseType
::
compute_pattern
;
using
BaseType
::
local_constraints
;
};
// class ProductFVInterface
...
...
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