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
a7e8af9f
Commit
a7e8af9f
authored
14 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
int -> size_type
[[Imported from SVN: r1279]]
parent
648e870c
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
+9
-9
9 additions, 9 deletions
dune/istl/supermatrix.hh
with
9 additions
and
9 deletions
dune/istl/supermatrix.hh
+
9
−
9
View file @
a7e8af9f
...
...
@@ -373,8 +373,8 @@ namespace Dune
void
allocateMarker
();
SuperLUMatrix
*
mat
;
int
cols
;
mutable
typename
Matrix
::
size_type
*
marker
;
size_type
cols
;
mutable
size_type
*
marker
;
};
template
<
class
T
,
class
A
,
int
n
,
int
m
>
...
...
@@ -444,7 +444,7 @@ namespace Dune
{
marker
=
new
typename
Matrix
::
size_type
[
cols
];
for
(
int
i
=
0
;
i
<
cols
;
++
i
)
for
(
size_type
i
=
0
;
i
<
cols
;
++
i
)
marker
[
i
]
=
0
;
}
...
...
@@ -459,7 +459,7 @@ namespace Dune
template
<
class
T
,
class
A
,
int
n
,
int
m
>
void
SuperMatrixInitializer
<
BCRSMatrix
<
FieldMatrix
<
T
,
n
,
m
>
,
A
>
>::
countEntries
(
size_type
colindex
)
const
{
for
(
int
i
=
0
;
i
<
m
;
++
i
)
{
for
(
size_type
i
=
0
;
i
<
m
;
++
i
)
{
assert
(
colindex
*
m
+
i
<
cols
);
marker
[
colindex
*
m
+
i
]
+=
n
;
}
...
...
@@ -470,7 +470,7 @@ namespace Dune
void
SuperMatrixInitializer
<
BCRSMatrix
<
FieldMatrix
<
T
,
n
,
m
>
,
A
>
>::
calcColstart
()
const
{
mat
->
colstart
[
0
]
=
0
;
for
(
int
i
=
0
;
i
<
cols
;
++
i
)
{
for
(
size_type
i
=
0
;
i
<
cols
;
++
i
)
{
assert
(
i
<
cols
);
mat
->
colstart
[
i
+
1
]
=
mat
->
colstart
[
i
]
+
marker
[
i
];
marker
[
i
]
=
mat
->
colstart
[
i
];
...
...
@@ -487,10 +487,10 @@ namespace Dune
template
<
class
T
,
class
A
,
int
n
,
int
m
>
void
SuperMatrixInitializer
<
BCRSMatrix
<
FieldMatrix
<
T
,
n
,
m
>
,
A
>
>::
copyValue
(
const
CIter
&
col
,
size_type
rowindex
,
size_type
colindex
)
const
{
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
for
(
int
j
=
0
;
j
<
m
;
j
++
)
{
assert
(
colindex
*
m
+
j
<
cols
-
1
||
marker
[
colindex
*
m
+
j
]
<
mat
->
colstart
[
colindex
*
m
+
j
+
1
]);
assert
(
marker
[
colindex
*
m
+
j
]
<
mat
->
Nnz_
);
for
(
size_type
i
=
0
;
i
<
n
;
i
++
)
{
for
(
size_type
j
=
0
;
j
<
m
;
j
++
)
{
assert
(
colindex
*
m
+
j
<
cols
-
1
||
(
int
)
marker
[
colindex
*
m
+
j
]
<
mat
->
colstart
[
colindex
*
m
+
j
+
1
]);
assert
(
(
int
)
marker
[
colindex
*
m
+
j
]
<
mat
->
Nnz_
);
mat
->
rowindex
[
marker
[
colindex
*
m
+
j
]]
=
rowindex
*
n
+
i
;
mat
->
values
[
marker
[
colindex
*
m
+
j
]]
=
(
*
col
)[
i
][
j
];
++
marker
[
colindex
*
m
+
j
];
// index for next entry in column
...
...
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