Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansgar Burchardt
dune-fufem
Commits
fa92f629
Commit
fa92f629
authored
9 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
StaticMatrix::axpy -> Arithmetic::addProduct
parent
81197ba4
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/fufem/assemblers/integraloperatorassembler.hh
+5
-5
5 additions, 5 deletions
dune/fufem/assemblers/integraloperatorassembler.hh
with
5 additions
and
5 deletions
dune/fufem/assemblers/integraloperatorassembler.hh
+
5
−
5
View file @
fa92f629
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
#include
<dune/istl/matrix.hh>
#include
<dune/istl/matrix.hh>
#include
<dune/istl/matrixindexset.hh>
#include
<dune/istl/matrixindexset.hh>
#include
"dune/fufem/arithmetic.hh"
#include
"dune/fufem/functionspacebases/functionspacebasis.hh"
#include
"dune/fufem/functionspacebases/functionspacebasis.hh"
#include
"dune/fufem/staticmatrixtools.hh"
//! Generic global assembler for operators on a gridview
//! Generic global assembler for operators on a gridview
template
<
class
TrialBasis
,
class
AnsatzBasis
>
template
<
class
TrialBasis
,
class
AnsatzBasis
>
...
@@ -89,21 +89,21 @@ class IntegralOperatorAssembler
...
@@ -89,21 +89,21 @@ class IntegralOperatorAssembler
for
(
size_t
rw
=
0
;
rw
<
rowConstraints
.
size
();
++
rw
)
for
(
size_t
rw
=
0
;
rw
<
rowConstraints
.
size
();
++
rw
)
{
{
for
(
size_t
cw
=
0
;
cw
<
colConstraints
.
size
();
++
cw
)
for
(
size_t
cw
=
0
;
cw
<
colConstraints
.
size
();
++
cw
)
StaticMatrix
::
axpy
(
A
[
rowConstraints
[
rw
].
index
][
colConstraints
[
cw
].
index
],
rowConstraints
[
rw
].
factor
*
colConstraints
[
cw
].
factor
,
localA
[
i
][
j
]);
Arithmetic
::
addProduct
(
A
[
rowConstraints
[
rw
].
index
][
colConstraints
[
cw
].
index
],
rowConstraints
[
rw
].
factor
*
colConstraints
[
cw
].
factor
,
localA
[
i
][
j
]);
}
}
}
}
else
if
(
rowIsConstrained
)
else
if
(
rowIsConstrained
)
{
{
for
(
size_t
rw
=
0
;
rw
<
rowConstraints
.
size
();
++
rw
)
for
(
size_t
rw
=
0
;
rw
<
rowConstraints
.
size
();
++
rw
)
StaticMatrix
::
axpy
(
A
[
rowConstraints
[
rw
].
index
][
colIndex
],
rowConstraints
[
rw
].
factor
,
localA
[
i
][
j
]);
Arithmetic
::
addProduct
(
A
[
rowConstraints
[
rw
].
index
][
colIndex
],
rowConstraints
[
rw
].
factor
,
localA
[
i
][
j
]);
}
}
else
if
(
colIsConstrained
)
else
if
(
colIsConstrained
)
{
{
for
(
size_t
cw
=
0
;
cw
<
colConstraints
.
size
();
++
cw
)
for
(
size_t
cw
=
0
;
cw
<
colConstraints
.
size
();
++
cw
)
StaticMatrix
::
axpy
(
A
[
rowIndex
][
colConstraints
[
cw
].
index
],
colConstraints
[
cw
].
factor
,
localA
[
i
][
j
]);
Arithmetic
::
addProduct
(
A
[
rowIndex
][
colConstraints
[
cw
].
index
],
colConstraints
[
cw
].
factor
,
localA
[
i
][
j
]);
}
}
else
else
StaticMatrix
::
axpy
(
A
[
rowIndex
][
colIndex
],
1.0
,
localA
[
i
][
j
]);
Arithmetic
::
addProduct
(
A
[
rowIndex
][
colIndex
],
1.0
,
localA
[
i
][
j
]);
}
}
}
}
}
}
...
...
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