Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
agnumpde
dune-solvers
Commits
4d0ac064
There was a problem fetching the pipeline summary.
Commit
4d0ac064
authored
Jul 13, 2016
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
91ebf908
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/solvers/iterationsteps/blockgsstep.cc
+5
-11
5 additions, 11 deletions
dune/solvers/iterationsteps/blockgsstep.cc
with
5 additions
and
11 deletions
dune/solvers/iterationsteps/blockgsstep.cc
+
5
−
11
View file @
4d0ac064
...
@@ -3,25 +3,19 @@
...
@@ -3,25 +3,19 @@
#include
<cassert>
#include
<cassert>
#include
<dune/solvers/common/arithmetic.hh>
template
<
class
MatrixType
,
class
DiscFuncType
,
class
BitVectorType
>
template
<
class
MatrixType
,
class
DiscFuncType
,
class
BitVectorType
>
inline
inline
void
BlockGSStep
<
MatrixType
,
DiscFuncType
,
BitVectorType
>::
void
BlockGSStep
<
MatrixType
,
DiscFuncType
,
BitVectorType
>::
residual
(
int
index
,
VectorBlock
&
r
)
const
residual
(
int
index
,
VectorBlock
&
r
)
const
{
{
const
MatrixType
&
mat
=
*
this
->
mat_
;
const
auto
&
row
=
mat
[
index
];
r
=
(
*
this
->
rhs_
)[
index
];
r
=
(
*
this
->
rhs_
)[
index
];
/* The following loop subtracts
const
auto
&
row
=
(
*
this
->
mat_
)[
index
];
* \f[ sum_i = \sum_j A_{ij}w_j \f]
for
(
auto
cIt
=
row
.
begin
();
cIt
!=
row
.
end
();
++
cIt
)
{
*/
auto
cIt
=
row
.
begin
();
auto
cEndIt
=
row
.
end
();
for
(;
cIt
!=
cEndIt
;
++
cIt
)
{
// r_i -= A_ij x_j
// r_i -= A_ij x_j
cIt
->
mmv
(
(
*
this
->
x_
)[
cIt
.
index
()]
,
r
);
Arithmetic
::
subtractProduct
(
r
,
*
cIt
,
(
*
this
->
x_
)[
cIt
.
index
()]);
}
}
}
}
...
...
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