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
dbddcdfa
Commit
dbddcdfa
authored
15 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Patch provided by Atgeirr which prevents dereferencing the end iterator.
[[Imported from SVN: r1144]]
parent
246c50e6
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/istl/supermatrix.hh
+2
-7
2 additions, 7 deletions
dune/istl/supermatrix.hh
with
2 additions
and
7 deletions
dune/istl/supermatrix.hh
+
2
−
7
View file @
dbddcdfa
...
...
@@ -95,14 +95,12 @@ namespace Dune
const_iterator
(
typename
Matrix
::
const_iterator
firstRow
,
typename
RowIndexSet
::
const_iterator
pos
)
:
firstRow_
(
firstRow
),
pos_
(
pos
)
{
currentRow_
=
firstRow_
+
(
*
pos_
);
}
{}
const
typename
Matrix
::
row_type
&
dereference
()
const
{
return
*
currentRow_
;
return
*
(
firstRow_
+
*
pos_
)
;
}
bool
equals
(
const
const_iterator
&
o
)
const
{
...
...
@@ -111,7 +109,6 @@ namespace Dune
void
increment
()
{
++
pos_
;
currentRow_
=
firstRow_
+
(
*
pos_
);
}
typename
RowIndexSet
::
value_type
index
()
const
{
...
...
@@ -121,8 +118,6 @@ namespace Dune
private
:
// @brief Iterator pointing to the first row of the matrix.
typename
Matrix
::
const_iterator
firstRow_
;
// @brief Iterator pointing to the current row of the matrix.
typename
Matrix
::
const_iterator
currentRow_
;
// @brief Iterator pointing to the current row index.
typename
RowIndexSet
::
const_iterator
pos_
;
};
...
...
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