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
79357952
Commit
79357952
authored
Sep 12, 2019
by
DIAZ Jerome
Committed by
GILLES Sebastien
Oct 29, 2019
Browse files
#177 Created a dummy test case for memory leaks involving PETSc wrappers.
parent
67b82e93
Changes
4
Hide whitespace changes
Inline
Side-by-side
Sources/Test/ThirdParty/PETSc/MatrixOperations/InputData.hpp
View file @
79357952
...
...
@@ -7,7 +7,6 @@
//
*/
#ifndef MOREFEM_x_TEST_x_THIRD_PARTY_x_P_E_T_SC_x_MATRIX_OPERATIONS_x_INPUT_DATA_HPP_
# define MOREFEM_x_TEST_x_THIRD_PARTY_x_P_E_T_SC_x_MATRIX_OPERATIONS_x_INPUT_DATA_HPP_
...
...
Sources/Test/ThirdParty/PETSc/MatrixOperations/Model.hpp
View file @
79357952
...
...
@@ -129,7 +129,7 @@ namespace MoReFEM
//! Accessor to the matrix B used for tests.
const
GlobalMatrix
&
GetMatrixB
()
const
noexcept
;
//! Accessor to the matrix C used for tests.
//! Accessor to the matrix C used for tests.
const
GlobalMatrix
&
GetMatrixC
()
const
noexcept
;
private:
...
...
@@ -163,8 +163,7 @@ namespace MoReFEM
//! Global matrix C which is used in the tests.
GlobalMatrix
::
unique_ptr
matrix_c_
=
nullptr
;
};
};
}
// namespace TestNS::PetscNS::MatrixOperationsNS
...
...
Sources/Test/ThirdParty/PETSc/MatrixOperations/Model.hxx
View file @
79357952
...
...
@@ -7,11 +7,9 @@
//
*/
#ifndef MOREFEM_x_TEST_x_THIRD_PARTY_x_P_E_T_SC_x_MATRIX_OPERATIONS_x_MODEL_HXX_
# define MOREFEM_x_TEST_x_THIRD_PARTY_x_P_E_T_SC_x_MATRIX_OPERATIONS_x_MODEL_HXX_
namespace
MoReFEM
{
...
...
@@ -44,21 +42,21 @@ namespace MoReFEM
}
inline
const
GlobalMatrix
&
Model
::
GetMatrixA
()
const
noexcept
inline
const
GlobalMatrix
&
Model
::
GetMatrixA
()
const
noexcept
{
assert
(
!
(
!
matrix_a_
));
return
*
matrix_a_
;
}
inline
const
GlobalMatrix
&
Model
::
GetMatrixB
()
const
noexcept
inline
const
GlobalMatrix
&
Model
::
GetMatrixB
()
const
noexcept
{
assert
(
!
(
!
matrix_b_
));
return
*
matrix_b_
;
}
inline
const
GlobalMatrix
&
Model
::
GetMatrixC
()
const
noexcept
inline
const
GlobalMatrix
&
Model
::
GetMatrixC
()
const
noexcept
{
assert
(
!
(
!
matrix_c_
));
return
*
matrix_c_
;
...
...
Sources/Test/ThirdParty/PETSc/MatrixOperations/main.cpp
View file @
79357952
...
...
@@ -53,7 +53,6 @@ int main(int argc, char** argv)
{
ExceptionNS
::
PrintAndAbort
(
mpi
,
e
.
what
());
}
}
catch
(
const
ExceptionNS
::
GracefulExit
&
)
{
...
...
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