Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
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
Core Modules
dune-istl
Commits
81790584
Commit
81790584
authored
19 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
removed bug in operator[]() const that I already removed three days
before for the mutable function. [[Imported from SVN: r205]]
parent
39b717fa
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
istl/indexset.hh
+6
-6
6 additions, 6 deletions
istl/indexset.hh
with
6 additions
and
6 deletions
istl/indexset.hh
+
6
−
6
View file @
81790584
...
...
@@ -479,7 +479,7 @@ namespace Dune
* @brief Get the total number (public and nonpublic) indices.
* @return The total number (public and nonpublic) indices.
*/
inline
in
t
size
()
const
;
inline
size_
t
size
()
const
;
private
:
/** @brief The index pairs. */
...
...
@@ -591,7 +591,7 @@ namespace Dune
* @brief Get the total number (public and nonpublic) indices.
* @return The total number (public and nonpublic) indices.
*/
inline
in
t
size
()
const
;
inline
size_
t
size
()
const
;
private:
/**
* @brief Array with the positions of the corresponding index pair of the index set.
...
...
@@ -854,7 +854,7 @@ namespace Dune
IndexSet
<
TG
,
TL
,
N
>::
operator
[](
const
TG
&
global
)
const
{
// perform a binary search
int
low
=
0
,
high
=
localIndices_
.
size
(),
probe
=-
1
;
int
low
=
0
,
high
=
localIndices_
.
size
()
-
1
,
probe
=-
1
;
while
(
low
<
high
)
{
...
...
@@ -896,7 +896,7 @@ namespace Dune
if
(
probe
==-
1
)
DUNE_THROW
(
RangeError
,
"No entries!"
);
if
(
localIndices_
[
probe
].
global
()
!=
global
)
if
(
localIndices_
[
low
].
global
()
!=
global
)
DUNE_THROW
(
RangeError
,
"Could not find entry of "
<<
global
);
else
#endif
...
...
@@ -956,7 +956,7 @@ namespace Dune
}
template
<
class
TG
,
class
TL
,
int
N
>
inline
in
t
IndexSet
<
TG
,
TL
,
N
>::
size
()
const
inline
size_
t
IndexSet
<
TG
,
TL
,
N
>::
size
()
const
{
return
localIndices_
.
size
();
}
...
...
@@ -1006,7 +1006,7 @@ namespace Dune
}
template
<
class
I
>
inline
in
t
GlobalLookupIndexSet
<
I
>::
size
()
const
inline
size_
t
GlobalLookupIndexSet
<
I
>::
size
()
const
{
return
indexSet_
.
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