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
bc387494
Commit
bc387494
authored
10 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[spaces.dg.fem] move deprecated class, remove assert. refs
#14
parent
c7ab5de6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/gdt/playground/spaces/dg/fem.hh
+6
-28
6 additions, 28 deletions
dune/gdt/playground/spaces/dg/fem.hh
dune/gdt/playground/spaces/discontinuouslagrange/fem.hh
+18
-0
18 additions, 0 deletions
dune/gdt/playground/spaces/discontinuouslagrange/fem.hh
with
24 additions
and
28 deletions
dune/gdt/playground/spaces/dg/fem.hh
+
6
−
28
View file @
bc387494
...
@@ -88,20 +88,14 @@ class FemBased<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1>
...
@@ -88,20 +88,14 @@ class FemBased<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1>
public:
public:
typedef
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
Traits
;
typedef
FemBasedTraits
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
1
,
1
>
Traits
;
typedef
typename
Traits
::
GridPartType
GridPartType
;
static
const
int
polOrder
=
Traits
::
polOrder
;
typedef
typename
Traits
::
GridViewType
GridViewType
;
static
const
unsigned
int
dimDomain
=
BaseType
::
dimDomain
;
static
const
int
polOrder
=
Traits
::
polOrder
;
typedef
typename
GridPartType
::
ctype
DomainFieldType
;
static
const
unsigned
int
dimDomain
=
BaseType
::
dimDomain
;
private:
static_assert
(
GridPartType
::
dimension
==
dimDomain
,
"Dimension of GridPart has to match dimDomain"
);
public:
typedef
typename
Traits
::
RangeFieldType
RangeFieldType
;
static
const
unsigned
int
dimRange
=
BaseType
::
dimRange
;
static
const
unsigned
int
dimRange
=
BaseType
::
dimRange
;
static
const
unsigned
int
dimRangeCols
=
BaseType
::
dimRangeCols
;
static
const
unsigned
int
dimRangeCols
=
BaseType
::
dimRangeCols
;
typedef
typename
Traits
::
GridPartType
GridPartType
;
typedef
typename
Traits
::
GridViewType
GridViewType
;
typedef
typename
Traits
::
RangeFieldType
RangeFieldType
;
typedef
typename
Traits
::
BackendType
BackendType
;
typedef
typename
Traits
::
BackendType
BackendType
;
typedef
typename
Traits
::
MapperType
MapperType
;
typedef
typename
Traits
::
MapperType
MapperType
;
typedef
typename
Traits
::
BaseFunctionSetType
BaseFunctionSetType
;
typedef
typename
Traits
::
BaseFunctionSetType
BaseFunctionSetType
;
...
@@ -110,6 +104,7 @@ public:
...
@@ -110,6 +104,7 @@ public:
typedef
typename
Traits
::
CommunicatorType
CommunicatorType
;
typedef
typename
Traits
::
CommunicatorType
CommunicatorType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
typedef
Dune
::
Stuff
::
LA
::
SparsityPatternDefault
PatternType
;
typedef
typename
GridPartType
::
ctype
DomainFieldType
;
FemBased
(
GridPartType
gridP
)
FemBased
(
GridPartType
gridP
)
:
gridPart_
(
new
GridPartType
(
gridP
))
:
gridPart_
(
new
GridPartType
(
gridP
))
...
@@ -190,23 +185,6 @@ class FemBased
...
@@ -190,23 +185,6 @@ class FemBased
}
// namespace DG
}
// namespace DG
namespace
DiscontinuousLagrange
{
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
,
int
rangeDim
,
int
rangeDimCols
=
1
>
class
DUNE_DEPRECATED_MSG
(
"Use DG::FemBased instead (21.11.2014)!"
)
FemBased
:
public
DG
::
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
{
public:
template
<
class
...
Args
>
FemBased
(
Args
&&
...
args
)
:
DG
::
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
(
std
::
forward
<
Args
>
(
args
)...)
{
}
};
}
// namespace DiscontinuousLagrange
}
// namespace Spaces
}
// namespace Spaces
}
// namespace GDT
}
// namespace GDT
}
// namespace Dune
}
// namespace Dune
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/playground/spaces/discontinuouslagrange/fem.hh
+
18
−
0
View file @
bc387494
...
@@ -9,4 +9,22 @@
...
@@ -9,4 +9,22 @@
#warning This header is deprecated, include <dune/gdt/playground/spaces/dg/fem.hh> instead (21.11.2014)!
#warning This header is deprecated, include <dune/gdt/playground/spaces/dg/fem.hh> instead (21.11.2014)!
#include
<dune/gdt/playground/spaces/dg/fem.hh>
#include
<dune/gdt/playground/spaces/dg/fem.hh>
namespace
DiscontinuousLagrange
{
template
<
class
GridPartImp
,
int
polynomialOrder
,
class
RangeFieldImp
,
int
rangeDim
,
int
rangeDimCols
=
1
>
class
DUNE_DEPRECATED_MSG
(
"Use DG::FemBased instead (21.11.2014)!"
)
FemBased
:
public
DG
::
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
{
public:
template
<
class
...
Args
>
FemBased
(
Args
&&
...
args
)
:
DG
::
FemBased
<
GridPartImp
,
polynomialOrder
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
(
std
::
forward
<
Args
>
(
args
)...)
{
}
};
}
// namespace DiscontinuousLagrange
#endif // DUNE_GDT_PLAYGROUND_SPACES_DISCONTINUOUSLAGRANGE_FEM_HH
#endif // DUNE_GDT_PLAYGROUND_SPACES_DISCONTINUOUSLAGRANGE_FEM_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