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
87a580c5
Commit
87a580c5
authored
20 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
avoid _A and _L to make dune BSD compatible
use rpc/rpc.h instead of rpc/xdr.h [[Imported from SVN: r107]]
parent
a9b195b4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
istl/operators.hh
+5
-5
5 additions, 5 deletions
istl/operators.hh
istl/preconditioners.hh
+13
-13
13 additions, 13 deletions
istl/preconditioners.hh
with
18 additions
and
18 deletions
istl/operators.hh
+
5
−
5
View file @
87a580c5
...
...
@@ -115,29 +115,29 @@ namespace Dune {
typedef
typename
X
::
field_type
field_type
;
//! constructor: just store a reference to a matrix
MatrixAdapter
(
const
M
&
A
)
:
_A
(
A
)
{}
MatrixAdapter
(
const
M
&
A
)
:
_A
_
(
A
)
{}
//! apply operator to x: \f$ y = A(x) \f$
virtual
void
apply
(
const
X
&
x
,
Y
&
y
)
const
{
y
=
0
;
_A
.
umv
(
x
,
y
);
_A
_
.
umv
(
x
,
y
);
}
//! apply operator to x, scale and add: \f$ y = y + \alpha A(x) \f$
virtual
void
applyscaleadd
(
field_type
alpha
,
const
X
&
x
,
Y
&
y
)
const
{
_A
.
usmv
(
alpha
,
x
,
y
);
_A
_
.
usmv
(
alpha
,
x
,
y
);
}
//! get matrix via *
virtual
const
M
&
getmat
()
const
{
return
_A
;
return
_A
_
;
}
private
:
const
M
&
_A
;
const
M
&
_A
_
;
};
/** @} end documentation */
...
...
This diff is collapsed.
Click to expand it.
istl/preconditioners.hh
+
13
−
13
View file @
87a580c5
...
...
@@ -119,7 +119,7 @@ namespace Dune {
//! constructor gets all parameters to operate the prec.
SeqSSOR
(
const
M
&
A
,
int
n
,
field_type
w
)
:
_A
(
A
),
_n
(
n
),
_w
(
w
)
:
_A
_
(
A
),
_n
(
n
),
_w
(
w
)
{
}
//! prepare: nothing to do here
...
...
@@ -130,8 +130,8 @@ namespace Dune {
{
for
(
int
i
=
0
;
i
<
_n
;
i
++
)
{
bsorf
(
_A
,
v
,
d
,
_w
);
bsorb
(
_A
,
v
,
d
,
_w
);
bsorf
(
_A
_
,
v
,
d
,
_w
);
bsorb
(
_A
_
,
v
,
d
,
_w
);
}
}
...
...
@@ -152,7 +152,7 @@ namespace Dune {
virtual
void
post
(
X
&
x
)
{}
private
:
const
M
&
_A
;
// my matrix to operate on
const
M
&
_A
_
;
// my matrix to operate on
int
_n
;
// number of iterations
field_type
_w
;
// relaxation factor
};
...
...
@@ -172,7 +172,7 @@ namespace Dune {
//! constructor gets all parameters to operate the prec.
SeqSOR
(
const
M
&
A
,
int
n
,
field_type
w
)
:
_A
(
A
),
_n
(
n
),
_w
(
w
)
:
_A
_
(
A
),
_n
(
n
),
_w
(
w
)
{
}
//! prepare: nothing to do here
...
...
@@ -183,7 +183,7 @@ namespace Dune {
{
for
(
int
i
=
0
;
i
<
_n
;
i
++
)
{
bsorf
(
_A
,
v
,
d
,
_w
);
bsorf
(
_A
_
,
v
,
d
,
_w
);
}
}
...
...
@@ -204,7 +204,7 @@ namespace Dune {
virtual
void
post
(
X
&
x
)
{}
private
:
const
M
&
_A
;
// my matrix to operate on
const
M
&
_A
_
;
// my matrix to operate on
int
_n
;
// number of iterations
field_type
_w
;
// relaxation factor
};
...
...
@@ -224,7 +224,7 @@ namespace Dune {
//! constructor gets all parameters to operate the prec.
SeqGS
(
const
M
&
A
,
int
n
,
field_type
w
)
:
_A
(
A
),
_n
(
n
),
_w
(
w
)
:
_A
_
(
A
),
_n
(
n
),
_w
(
w
)
{
}
//! prepare: nothing to do here
...
...
@@ -235,7 +235,7 @@ namespace Dune {
{
for
(
int
i
=
0
;
i
<
_n
;
i
++
)
{
dbgs
(
_A
,
v
,
d
,
_w
);
dbgs
(
_A
_
,
v
,
d
,
_w
);
}
}
...
...
@@ -256,7 +256,7 @@ namespace Dune {
virtual
void
post
(
X
&
x
)
{}
private
:
const
M
&
_A
;
// my matrix to operate on
const
M
&
_A
_
;
// my matrix to operate on
int
_n
;
// number of iterations
field_type
_w
;
// relaxation factor
};
...
...
@@ -276,7 +276,7 @@ namespace Dune {
//! constructor gets all parameters to operate the prec.
SeqJac
(
const
M
&
A
,
int
n
,
field_type
w
)
:
_A
(
A
),
_n
(
n
),
_w
(
w
)
:
_A
_
(
A
),
_n
(
n
),
_w
(
w
)
{
}
//! prepare: nothing to do here
...
...
@@ -287,7 +287,7 @@ namespace Dune {
{
for
(
int
i
=
0
;
i
<
_n
;
i
++
)
{
dbjac
(
_A
,
v
,
d
,
_w
);
dbjac
(
_A
_
,
v
,
d
,
_w
);
}
}
...
...
@@ -308,7 +308,7 @@ namespace Dune {
virtual
void
post
(
X
&
x
)
{}
private
:
const
M
&
_A
;
// my matrix to operate on
const
M
&
_A
_
;
// my matrix to operate on
int
_n
;
// number of iterations
field_type
_w
;
// relaxation factor
};
...
...
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