Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
4ce5b65b
Commit
4ce5b65b
authored
Aug 15, 2008
by
Thomas Witkowski
Browse files
* removed axpy from ProblemVec
parent
8f4f2d4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
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