Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Tobias Leibner
dune-common
Commits
e011b4d6
Commit
e011b4d6
authored
20 years ago
by
Thimo Neubauer
Browse files
Options
Downloads
Patches
Plain Diff
declared some zero entity-methods as const
[[Imported from SVN: r1234]]
parent
a3cedf11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/yaspgrid.hh
+6
-6
6 additions, 6 deletions
grid/yaspgrid.hh
with
6 additions
and
6 deletions
grid/yaspgrid.hh
+
6
−
6
View file @
e011b4d6
...
...
@@ -454,13 +454,13 @@ namespace Dune {
typedef
yaspgrid_ctype
ctype
;
//! level of this element
int
level
()
int
level
()
const
{
DUNE_THROW
(
GridError
,
"YaspEntity not implemented"
);
}
//! index is unique and consecutive per level and codim used for access to degrees of freedom
int
index
()
int
index
()
const
{
DUNE_THROW
(
GridError
,
"YaspEntity not implemented"
);
}
...
...
@@ -498,10 +498,10 @@ namespace Dune {
{}
//! level of this element
int
level
()
{
return
_g
.
level
();}
int
level
()
const
{
return
_g
.
level
();}
//! index is unique and consecutive per level
int
index
()
{
return
_it
.
superindex
();}
// superindex works also for iteration over subgrids
int
index
()
const
{
return
_it
.
superindex
();}
// superindex works also for iteration over subgrids
//! geometry of this entity
YaspElement
<
dim
,
dimworld
>&
geometry
()
{
return
_element
;}
...
...
@@ -517,7 +517,7 @@ namespace Dune {
/*! Intra-element access to entities of codimension cc > codim. Return number of entities
with codimension cc.
*/
template
<
int
cc
>
int
count
()
template
<
int
cc
>
int
count
()
const
{
if
(
cc
==
1
)
return
2
*
dim
;
if
(
cc
==
dim
)
return
1
<<
dim
;
...
...
@@ -528,7 +528,7 @@ namespace Dune {
with codimension cc.
*/
template
<
int
cc
>
YaspLevelIterator
<
cc
,
dim
,
dimworld
,
All_Partition
>
entity
(
int
i
)
YaspLevelIterator
<
cc
,
dim
,
dimworld
,
All_Partition
>
entity
(
int
i
)
const
{
IsTrue
<
(
cc
==
dim
||
cc
==
0
)
>::
yes
();
// coordinates of the cell == coordinates of lower left corner
...
...
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