Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
4ce5b65b
Commit
4ce5b65b
authored
Aug 15, 2008
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* removed axpy from ProblemVec
parent
8f4f2d4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
33 deletions
+2
-33
AMDiS/src/AMDiS.h
AMDiS/src/AMDiS.h
+2
-0
AMDiS/src/ProblemVec.cc
AMDiS/src/ProblemVec.cc
+0
-27
AMDiS/src/ProblemVec.h
AMDiS/src/ProblemVec.h
+0
-6
No files found.
AMDiS/src/AMDiS.h
View file @
4ce5b65b
...
...
@@ -95,4 +95,6 @@
#include "Triangle.h"
#include "ValueWriter.h"
#include "demangle.h"
#include "parareal/ProblemBase.h"
#include "parareal/AdaptParaReal.h"
#endif
AMDiS/src/ProblemVec.cc
View file @
4ce5b65b
...
...
@@ -1014,32 +1014,5 @@ namespace AMDiS {
solution_
->
deserialize
(
in
);
}
void
axpy
(
double
a
,
const
Matrix
<
DOFMatrix
*>
&
x
,
Matrix
<
DOFMatrix
*>
&
y
)
{
FUNCNAME
(
"ProblemVec::axpy()"
);
int
numRows
=
x
.
getNumRows
(),
numCols
=
x
.
getNumCols
();
int
i
,
j
;
const
DOFMatrix
*
xMatrix
;
DOFMatrix
*
yMatrix
;
for
(
i
=
0
;
i
<
numRows
;
i
++
)
{
for
(
j
=
0
;
j
<
numCols
;
j
++
)
{
xMatrix
=
x
[
i
][
j
];
yMatrix
=
y
[
i
][
j
];
if
(
!
xMatrix
)
continue
;
if
(
!
yMatrix
)
{
yMatrix
=
NEW
DOFMatrix
(
xMatrix
->
getRowFESpace
(),
xMatrix
->
getColFESpace
(),
""
);
y
[
i
][
j
]
=
yMatrix
;
}
yMatrix
->
axpy
(
a
,
*
xMatrix
,
*
yMatrix
);
}
}
}
}
AMDiS/src/ProblemVec.h
View file @
4ce5b65b
...
...
@@ -641,12 +641,6 @@ namespace AMDiS {
*/
static
ProblemVec
*
traversePtr_
;
};
void
axpy
(
double
a
,
const
Matrix
<
DOFMatrix
*>
&
x
,
Matrix
<
DOFMatrix
*>
&
y
);
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment