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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Timo Koch
dune-common
Commits
d9d5cac6
Commit
d9d5cac6
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
don't throw assertion in method subIndex for codim 0 .
[[Imported from SVN: r3132]]
parent
be248a6b
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/common/leafindexset.hh
+1
-5
1 addition, 5 deletions
grid/common/leafindexset.hh
with
1 addition
and
5 deletions
grid/common/leafindexset.hh
+
1
−
5
View file @
d9d5cac6
...
...
@@ -640,11 +640,10 @@ namespace Dune {
template
<
int
cd
>
int
subIndex
(
const
EntityCodim0Type
&
en
,
int
i
)
const
{
assert
(
cd
>
0
);
assert
(
cd
>
=
0
);
assert
(
cd
<
ncodim
);
if
(
!
codimUsed_
[
cd
])
this
->
template
setUpCodimSet
<
cd
>();
return
codimLeafSet_
[
cd
].
index
(
hIndexSet_
.
template
subIndex
<
cd
>
(
en
,
i
)
);
//return hIndexSet_. template subIndex<cd> (en,i) ;
}
//! returns vector with geometry tpyes this index set has indices for
...
...
@@ -668,7 +667,6 @@ namespace Dune {
//! set indices to unsed
void
remove
(
const
EntityCodim0Type
&
en
)
{
//std::cout << "Remove el = "<< hIndexSet_.index(en) << "\n";
codimLeafSet_
[
0
].
remove
(
hIndexSet_
.
index
(
en
)
);
if
(
higherCodims_
)
{
...
...
@@ -688,8 +686,6 @@ namespace Dune {
//! return size of grid entities per level and codim
int
size
(
int
codim
,
GeometryType
type
=
unknown
)
const
{
//if(codim == 0) return codimLeafSet_[codim].size()
;
//return hIndexSet_.size(codim);
return
codimLeafSet_
[
codim
].
size
();
}
...
...
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