Commit 79357952 authored by DIAZ Jerome's avatar DIAZ Jerome Committed by GILLES Sebastien
Browse files

#177 Created a dummy test case for memory leaks involving PETSc wrappers.

parent 67b82e93
......@@ -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_
......
......@@ -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
......
......@@ -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_;
......
......@@ -53,7 +53,6 @@ int main(int argc, char** argv)
{
ExceptionNS::PrintAndAbort(mpi, e.what());
}
}
catch(const ExceptionNS::GracefulExit&)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment