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
a85232e8
Commit
a85232e8
authored
10 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[spaces.cg.interface] style fixes, remove disable_warnings include, refs
#14
parent
ea499a7f
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/spaces/cg/interface.hh
+23
-19
23 additions, 19 deletions
dune/gdt/spaces/cg/interface.hh
with
23 additions
and
19 deletions
dune/gdt/spaces/cg/interface.hh
+
23
−
19
View file @
a85232e8
...
...
@@ -8,15 +8,13 @@
#include
<dune/common/dynvector.hh>
#include
<dune/common/version.hh>
#include
<dune/common/typetraits.hh>
#include
<dune/stuff/common/disable_warnings.hh>
#if DUNE_VERSION_NEWER(DUNE_COMMON, 3, 9) // EXADUNE
#include
<dune/geometry/referenceelements.hh>
#else
#include
<dune/geometry/genericreferenceelements.hh>
#endif
#include
<dune/common/typetraits.hh>
#include
<dune/stuff/common/reenable_warnings.hh>
#include
<dune/stuff/common/exceptions.hh>
#include
<dune/stuff/common/type_utils.hh>
...
...
@@ -31,8 +29,8 @@ namespace Spaces {
template
<
class
ImpTraits
,
int
domainDim
,
class
RangeFieldImp
,
int
rangeDim
,
int
rangeDimCols
=
1
>
class
CGInterface
:
public
SpaceInterface
<
ImpTraits
,
domainDim
,
rangeDim
,
rangeDimCols
>
{
typedef
SpaceInterface
<
ImpTraits
,
domainDim
,
rangeDim
,
1
>
BaseType
;
typedef
CGInterface
<
ImpTraits
,
domainDim
,
RangeFieldImp
,
rangeDim
,
1
>
ThisType
;
typedef
SpaceInterface
<
ImpTraits
,
domainDim
,
rangeDim
,
rangeDimCols
>
BaseType
;
typedef
CGInterface
<
ImpTraits
,
domainDim
,
RangeFieldImp
,
rangeDim
,
rangeDimCols
>
ThisType
;
static
constexpr
RangeFieldImp
compare_tolerance_
=
1e-13
;
...
...
@@ -54,23 +52,27 @@ public:
using
typename
BaseType
::
BoundaryInfoType
;
using
typename
BaseType
::
PatternType
;
/
/ virtual ~ContinuousLagrangeBase() {}
// von uns neu verlangt
/
**
* \defgroup interface ´´These methods have to be implemented!''
* @{
**/
std
::
vector
<
DomainType
>
lagrange_points
(
const
EntityType
&
entity
)
const
{
CHECK_CRTP
(
this
->
as_imp
().
lagrange_points
(
entity
));
return
this
->
as_imp
().
lagrange_points
(
entity
);
}
}
// ... lagrange_points(...)
std
::
set
<
size_t
>
local_dirichlet_DoFs
(
const
EntityType
&
entity
,
const
BoundaryInfoType
&
boundaryInfo
)
const
{
//...
}
/
/ von uns bereitgestellt
CHECK_CRTP
(
this
->
as_imp
().
local_dirichlet_DoFs
(
entity
,
boundaryInfo
));
return
this
->
as_imp
().
local_dirichlet_DoFs
(
entity
,
boundaryInfo
);
}
// ... local_dirichlet_DoFs(...)
/
** @} */
/**
* \defgroup provided ´´These methods are provided by the interface for convenience.''
* @{
**/
std
::
vector
<
DomainType
>
lagrange_points_order_1
(
const
EntityType
&
entity
)
const
{
// check
...
...
@@ -110,7 +112,7 @@ public:
assert
(
ones
==
1
&&
zeros
==
(
basis
.
size
()
-
1
)
&&
failures
==
0
&&
"This must not happen for polOrder 1!"
);
}
return
local_vertices
;
}
// ... lagrange_points(...)
}
// ... lagrange_points
_order_1
(...)
std
::
set
<
size_t
>
local_dirichlet_DoFs_order_1
(
const
EntityType
&
entity
,
const
BoundaryInfoType
&
boundaryInfo
)
const
{
...
...
@@ -159,7 +161,7 @@ public:
assert
(
ones
==
1
&&
zeros
==
(
basis
.
size
()
-
1
)
&&
failures
==
0
&&
"This must not happen for polOrder 1!"
);
}
return
localDirichletDofs
;
}
// ... local_dirichlet_DoFs(...)
}
// ... local_dirichlet_DoFs
_order_1
(...)
using
BaseType
::
compute_pattern
;
...
...
@@ -168,7 +170,8 @@ public:
PatternType
compute_pattern
(
const
GridView
<
G
>&
local_grid_view
,
const
SpaceInterface
<
S
,
d
,
r
,
rC
>&
ansatz_space
)
const
{
return
BaseType
::
compute_volume_pattern
(
local_grid_view
,
ansatz_space
);
}
}
// ... compute_pattern(...)
using
BaseType
::
local_constraints
;
...
...
@@ -177,7 +180,7 @@ public:
ConstraintsType
&
/*ret*/
)
const
{
static_assert
(
AlwaysFalse
<
S
>::
value
,
"Not implemented for these constraints!"
);
}
}
// ... local_constraints(...)
template
<
class
S
,
int
d
,
int
r
,
int
rC
>
void
local_constraints
(
const
SpaceInterface
<
S
,
d
,
r
,
rC
>&
other
,
const
EntityType
&
entity
,
...
...
@@ -213,7 +216,8 @@ public:
ret
.
set_size
(
0
,
0
);
}
}
// ... local_constraints(..., Constraints::Dirichlet< ... > ...)
};
// class ContinuousLagrangeBase
/** @} */
};
// class CGInterface
}
// namespace Spaces
...
...
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