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
facfacef
Commit
facfacef
authored
11 years ago
by
Dominic Kempf
Committed by
Steffen Müthing
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added uppercases to names and a new buildStage() getter
parent
0ae62721
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
dune/istl/bcrsmatrix.hh
+9
-3
9 additions, 3 deletions
dune/istl/bcrsmatrix.hh
with
9 additions
and
3 deletions
dune/istl/bcrsmatrix.hh
+
9
−
3
View file @
facfacef
...
...
@@ -213,7 +213,7 @@ namespace Dune {
Construct the matrix via
- BCRSMatrix(size_type _n, size_type _m, size_type _avg, double _overflowsize, BuildMode bm)
- void setSize(size_type rows, size_type columns, size_type nnz=0) after setting
the buildmode to mymode and the compression parameter via set
m
ymode
p
arameters(size_type _avg, double _overflow)
the buildmode to mymode and the compression parameter via set
M
ymode
P
arameters(size_type _avg, double _overflow)
Start filling your matrix with entry(size_type row, size_type col).
Full access is possible also during buildstage, although not as fast
...
...
@@ -647,7 +647,7 @@ namespace Dune {
if
(
build_mode
==
mymode
)
{
if
(
nnz
>
0
)
DUNE_THROW
(
Dune
::
ISTLError
,
"number of non-zeroes may not be set in mymode mode, use set
m
ymode
p
arameters() instead"
);
DUNE_THROW
(
Dune
::
ISTLError
,
"number of non-zeroes may not be set in mymode mode, use set
M
ymode
P
arameters() instead"
);
// mymode allocates differently
mymode_allocate
(
rows
,
columns
);
...
...
@@ -667,7 +667,7 @@ namespace Dune {
* @param _overflowsize fraction of _n*_avg which is expected to be
* needed for elements that exceed _avg entries per row.
*/
void
setmymode
p
arameters
(
size_type
_avg
,
double
_overflow
)
void
setm
M
ymode
P
arameters
(
size_type
_avg
,
double
_overflow
)
{
avg
=
_avg
;
overflow
=
_overflow
;
...
...
@@ -1032,6 +1032,7 @@ namespace Dune {
*/
B
&
entry
(
size_type
row
,
size_type
col
)
{
#ifdef DUNE_ISTL_WITH_CHECKING
if
(
build_mode
!=
mymode
)
DUNE_THROW
(
ISTLError
,
"requires mymode build mode"
);
if
(
ready
==
built
)
...
...
@@ -1041,6 +1042,7 @@ namespace Dune {
DUNE_THROW
(
ISTLError
,
"row index exceeds matrix size"
);
if
(
col
>=
m
)
DUNE_THROW
(
ISTLError
,
"column index exceeds matrix size"
);
#endif
size_type
*
begin
=
r
[
row
].
getindexptr
();
size_type
*
end
=
begin
+
r
[
row
].
getsize
();
...
...
@@ -1556,6 +1558,10 @@ namespace Dune {
return
nnz
;
}
BuildStage
buildStage
()
const
{
return
ready
;
}
//===== query
...
...
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