Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
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-common
Commits
59973e9d
Commit
59973e9d
authored
20 years ago
by
Peter Bastian
Browse files
Options
Downloads
Patches
Plain Diff
LoopSolver has only one template argument now
[[Imported from SVN: r974]]
parent
e55ca181
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
istl/solvers.hh
+8
-8
8 additions, 8 deletions
istl/solvers.hh
with
8 additions
and
8 deletions
istl/solvers.hh
+
8
−
8
View file @
59973e9d
...
...
@@ -97,22 +97,22 @@ namespace Dune {
1 : print initial and final defect and statistics
2 : print line for each iteration
*/
template
<
class
X
,
class
Y
>
class
LoopSolver
:
public
InverseOperator
<
X
,
Y
>
{
template
<
class
X
>
class
LoopSolver
:
public
InverseOperator
<
X
,
X
>
{
public:
//! export types, usually they come from the derived class
typedef
X
domain_type
;
typedef
Y
range_type
;
typedef
X
range_type
;
typedef
typename
X
::
field_type
field_type
;
//! set up Loop solver
LoopSolver
(
LinearOperator
<
X
,
Y
>&
op
,
Preconditioner
<
X
,
Y
>&
prec
,
LoopSolver
(
LinearOperator
<
X
,
X
>&
op
,
Preconditioner
<
X
,
X
>&
prec
,
double
reduction
,
int
maxit
,
int
verbose
)
:
_op
(
op
),
_prec
(
prec
),
_reduction
(
reduction
),
_maxit
(
maxit
),
_verbose
(
verbose
)
{}
//! apply inverse operator
virtual
void
apply
(
X
&
x
,
Y
&
b
,
InverseOperatorResult
&
r
)
virtual
void
apply
(
X
&
x
,
X
&
b
,
InverseOperatorResult
&
r
)
{
// clear solver statistics
r
.
clear
();
...
...
@@ -178,15 +178,15 @@ namespace Dune {
}
//! apply inverse operator, with given reduction factor
virtual
void
apply
(
X
&
x
,
Y
&
b
,
double
reduction
,
InverseOperatorResult
&
r
)
virtual
void
apply
(
X
&
x
,
X
&
b
,
double
reduction
,
InverseOperatorResult
&
r
)
{
_reduction
=
reduction
;
(
*
this
).
apply
(
x
,
b
,
r
);
}
private
:
LinearOperator
<
X
,
Y
>&
_op
;
Preconditioner
<
X
,
Y
>&
_prec
;
LinearOperator
<
X
,
X
>&
_op
;
Preconditioner
<
X
,
X
>&
_prec
;
double
_reduction
;
int
_maxit
;
int
_verbose
;
...
...
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