Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
fd126f1f
Commit
fd126f1f
authored
Oct 14, 2019
by
DIAZ Jerome
Committed by
GILLES Sebastien
Oct 29, 2019
Browse files
#1489 Added an assert for the in place DoReuseMatrix policy of the MatTranspose PETSc wrapper.
parent
ba8dc41b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Sources/Test/ThirdParty/PETSc/MatrixOperations/Model.cpp
View file @
fd126f1f
...
...
@@ -201,11 +201,11 @@ namespace MoReFEM::TestNS::PetscNS::MatrixOperationsNS
Wrappers
::
Petsc
::
DoReuseMatrix
::
no
);
Wrappers
::
Petsc
::
MatMatMatMult
(
matrix_init_1
,
matrix_init_2
,
matrix_init_3
,
matrix_10
,
__FILE__
,
__LINE__
,
Wrappers
::
Petsc
::
DoReuseMatrix
::
yes
);
matrix_init_2
,
matrix_init_3
,
matrix_10
,
__FILE__
,
__LINE__
,
Wrappers
::
Petsc
::
DoReuseMatrix
::
yes
);
}
{
IS
rperm
;
...
...
Sources/ThirdParty/Wrappers/Petsc/Matrix/MatrixOperations.hxx
View file @
fd126f1f
...
...
@@ -275,6 +275,9 @@ namespace MoReFEM
case
DoReuseMatrix
::
in_place
:
{
result
=
matrix1
.
Internal
();
assert
(
matrix1
.
Internal
()
==
matrix2
.
Internal
()
&&
"For in place transpose both arguments"
"are expected to be pointers to the"
"same PETSc matrix object."
);
error_code
=
::
MatTranspose
(
matrix1
.
Internal
(),
MAT_INPLACE_MATRIX
,
&
result
);
break
;
}
...
...
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