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
56e0b377
Commit
56e0b377
authored
10 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[spaces.fv.default] move deprecated class, remove assert. refs
#14
parent
9da416e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/gdt/playground/spaces/finitevolume/default.hh
+18
-0
18 additions, 0 deletions
dune/gdt/playground/spaces/finitevolume/default.hh
dune/gdt/playground/spaces/fv/default.hh
+7
-29
7 additions, 29 deletions
dune/gdt/playground/spaces/fv/default.hh
with
25 additions
and
29 deletions
dune/gdt/playground/spaces/finitevolume/default.hh
+
18
−
0
View file @
56e0b377
...
...
@@ -9,4 +9,22 @@
#warning This header is deprecated, include <dune/gdt/playground/spaces/fv/default.hh> instead (19.11.2014)!
#include
<dune/gdt/playground/spaces/fv/default.hh>
namespace
FiniteVolume
{
template
<
class
GridViewImp
,
class
RangeFieldImp
,
int
rangeDim
,
int
rangeDimCols
=
1
>
class
DUNE_DEPRECATED_MSG
(
"Use FV::Default instead (19.11.2014)!"
)
Default
:
public
FV
::
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
{
public:
template
<
class
...
Args
>
Default
(
Args
&&
...
args
)
:
FV
::
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
(
std
::
forward
<
Args
>
(
args
)...)
{
}
};
}
// namespace FiniteVolume
#endif // DUNE_GDT_PLAYGROUND_SPACES_FINITEVOLUME_DEFAULT_HH
This diff is collapsed.
Click to expand it.
dune/gdt/playground/spaces/fv/default.hh
+
7
−
29
View file @
56e0b377
...
...
@@ -58,34 +58,29 @@ template <class GridViewImp, class RangeFieldImp, int rangeDim>
class
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
:
public
SpaceInterface
<
DefaultTraits
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
,
GridViewImp
::
dimension
,
rangeDim
,
1
>
{
typedef
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
ThisType
;
typedef
SpaceInterface
<
DefaultTraits
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
,
GridViewImp
::
dimension
,
rangeDim
,
1
>
BaseType
;
typedef
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
ThisType
;
public:
typedef
DefaultTraits
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
1
>
Traits
;
typedef
typename
Traits
::
GridViewType
GridViewType
;
static
const
int
polOrder
=
Traits
::
polOrder
;
typedef
typename
GridViewType
::
ctype
DomainFieldType
;
static
const
unsigned
int
dimDomain
=
BaseType
::
dimDomain
;
private:
static_assert
(
GridViewType
::
dimension
==
dimDomain
,
"Dimension of GridView has to match dimDomain"
);
public:
typedef
typename
Traits
::
RangeFieldType
RangeFieldType
;
static
const
int
polOrder
=
Traits
::
polOrder
;
static
const
unsigned
int
dimDomain
=
BaseType
::
dimDomain
;
static
const
unsigned
int
dimRange
=
BaseType
::
dimRange
;
static
const
unsigned
int
dimRangeCols
=
BaseType
::
dimRangeCols
;
typedef
typename
Traits
::
GridViewType
GridViewType
;
typedef
typename
Traits
::
RangeFieldType
RangeFieldType
;
typedef
typename
Traits
::
BackendType
BackendType
;
typedef
typename
Traits
::
MapperType
MapperType
;
typedef
typename
Traits
::
BaseFunctionSetType
BaseFunctionSetType
;
typedef
typename
Traits
::
EntityType
EntityType
;
typedef
typename
Traits
::
BaseFunctionSetType
BaseFunctionSetType
;
typedef
typename
Traits
::
CommunicationChooserType
CommunicationChooserType
;
typedef
typename
Traits
::
CommunicatorType
CommunicatorType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
typedef
typename
GridViewType
::
ctype
DomainFieldType
;
Default
(
GridViewType
gv
)
:
grid_view_
(
gv
)
...
...
@@ -149,23 +144,6 @@ private:
}
// namespace FV
namespace
FiniteVolume
{
template
<
class
GridViewImp
,
class
RangeFieldImp
,
int
rangeDim
,
int
rangeDimCols
=
1
>
class
DUNE_DEPRECATED_MSG
(
"Use FV::Default instead (19.11.2014)!"
)
Default
:
public
FV
::
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
{
public:
template
<
class
...
Args
>
Default
(
Args
&&
...
args
)
:
FV
::
Default
<
GridViewImp
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
(
std
::
forward
<
Args
>
(
args
)...)
{
}
};
}
// namespace FiniteVolume
}
// namespace Spaces
}
// namespace GDT
}
// namespace Dune
...
...
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