Commit f264081a authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1119 Fix warnings due to the new virtual destructors.

parent 1d91317a
......@@ -1004,6 +1004,7 @@
BE86A9EF1A385C9B003B211D /* SegmentP2.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE86A9ED1A385C9B003B211D /* SegmentP2.hpp */; };
BE87A4EE1A6FEFF100E92902 /* InitHappyHeart.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE87A4EB1A6FEFF100E92902 /* InitHappyHeart.hpp */; };
BE87A4EF1A6FEFF100E92902 /* InitHappyHeart.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE87A4EC1A6FEFF100E92902 /* InitHappyHeart.hxx */; };
BE8ADFAC1F05668100DB6762 /* BaseMatrix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE8ADFAB1F05668100DB6762 /* BaseMatrix.cpp */; };
BE8B67371CC0EA3800312399 /* NumberingSubset.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE8B67341CC0EA3800312399 /* NumberingSubset.cpp */; };
BE8B67381CC0EA3800312399 /* NumberingSubset.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8B67351CC0EA3800312399 /* NumberingSubset.hpp */; };
BE8B67391CC0EA3800312399 /* NumberingSubset.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE8B67361CC0EA3800312399 /* NumberingSubset.hxx */; };
......@@ -4759,6 +4760,7 @@
BE86A9ED1A385C9B003B211D /* SegmentP2.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SegmentP2.hpp; sourceTree = "<group>"; };
BE87A4EB1A6FEFF100E92902 /* InitHappyHeart.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InitHappyHeart.hpp; sourceTree = "<group>"; };
BE87A4EC1A6FEFF100E92902 /* InitHappyHeart.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InitHappyHeart.hxx; sourceTree = "<group>"; };
BE8ADFAB1F05668100DB6762 /* BaseMatrix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BaseMatrix.cpp; sourceTree = "<group>"; };
BE8B67311CC0E2E100312399 /* Core.doxygen */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = Core.doxygen; sourceTree = "<group>"; };
BE8B67341CC0EA3800312399 /* NumberingSubset.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NumberingSubset.cpp; sourceTree = "<group>"; };
BE8B67351CC0EA3800312399 /* NumberingSubset.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = NumberingSubset.hpp; sourceTree = "<group>"; };
......@@ -6805,6 +6807,7 @@
BE110E931E11513200D2D2C8 /* Internal */ = {
isa = PBXGroup;
children = (
BE8ADFAB1F05668100DB6762 /* BaseMatrix.cpp */,
BE110E941E11513200D2D2C8 /* BaseMatrix.hpp */,
BE110E951E11513200D2D2C8 /* NonZeroPattern.hpp */,
BE110E961E11513200D2D2C8 /* NonZeroPattern.hxx */,
......@@ -13424,6 +13427,7 @@
BE90E1711A24926E00CCAFDE /* String.cpp in Sources */,
BEDEB9281C3C073100B1C71B /* Umfpack.cpp in Sources */,
BE2DCB521C7477430070090E /* libmesh6.c in Sources */,
BE8ADFAC1F05668100DB6762 /* BaseMatrix.cpp in Sources */,
BE3D12C21D9B1FFB00F900F5 /* SnesConvergenceReason.cpp in Sources */,
BE90E1941A24929A00CCAFDE /* TimeKeep.cpp in Sources */,
BE90E1611A24926E00CCAFDE /* Exception.cpp in Sources */,
......@@ -17,6 +17,9 @@ namespace HappyHeart
{
GlobalDiagonalMatrix::~GlobalDiagonalMatrix() = default;
GlobalDiagonalMatrix::GlobalDiagonalMatrix(const NumberingSubset& numbering_subset)
: parent(numbering_subset, numbering_subset)
{ }
......
......@@ -53,7 +53,7 @@ namespace HappyHeart
explicit GlobalDiagonalMatrix(const NumberingSubset& numbering_subset);
//! Destructor.
~GlobalDiagonalMatrix() = default;
~GlobalDiagonalMatrix() override;
//! Copy constructor.
GlobalDiagonalMatrix(const GlobalDiagonalMatrix&) = delete;
......
......@@ -30,6 +30,9 @@ namespace HappyHeart
{
GlobalMatrix::~GlobalMatrix() = default;
GlobalMatrix::GlobalMatrix(const NumberingSubset& row_numbering_subset,
const NumberingSubset& col_numbering_subset)
: Crtp::NumberingSubsetForMatrix<GlobalMatrix>(row_numbering_subset, col_numbering_subset)
......
......@@ -80,7 +80,7 @@ namespace HappyHeart
const NumberingSubset& col_numbering_subset);
//! Destructor.
~GlobalMatrix() = default;
~GlobalMatrix() override;
//! Copy constructor.
GlobalMatrix(const GlobalMatrix&);
......
......@@ -21,6 +21,9 @@ namespace HappyHeart
{
GlobalVector::~GlobalVector() = default;
GlobalVector::GlobalVector(const NumberingSubset& numbering_subset)
: numbering_subset_(numbering_subset)
{ }
......
......@@ -73,7 +73,7 @@ namespace HappyHeart
explicit GlobalVector(const NumberingSubset& numbering_subset);
//! Destructor.
~GlobalVector() = default;
~GlobalVector() override;
//! Copy constructor.
GlobalVector(const GlobalVector&);
......
......@@ -12,6 +12,7 @@ third_party_src_keep_warnings = Split('''
./Wrappers/Parmetis/Exceptions/Parmetis.cpp
./Wrappers/Parmetis/Parmetis.cpp
./Wrappers/Petsc/Exceptions/Petsc.cpp
./Wrappers/Petsc/Matrix/Internal/BaseMatrix.cpp
./Wrappers/Petsc/Matrix/Matrix.cpp
./Wrappers/Petsc/Matrix/MatrixInfo.cpp
./Wrappers/Petsc/Matrix/MatrixPattern.cpp
......@@ -31,7 +32,7 @@ third_party_src_keep_warnings = Split('''
./Wrappers/Petsc/Vector/Vector.cpp
./Wrappers/Petsc/Viewer.cpp
./Wrappers/Seldon/MatrixOperations.cpp
./Wrappers/Seldon/SeldonFunctions.cpp
./Wrappers/Seldon/SeldonFunctions.cpp
''')
......
///
////// \file
///
///
/// Created by Sebastien Gilles <sebastien.gilles@inria.fr> on the Fri, 30 Oct 2015 12:41:42 +0100
/// Copyright (c) Inria. All rights reserved.
///
/// \ingroup ThirdPartyGroup
/// \addtogroup ThirdPartyGroup
/// \{
#include "ThirdParty/Wrappers/Petsc/Matrix/Internal/BaseMatrix.hpp"
namespace HappyHeart
{
namespace Internal
{
namespace Wrappers
{
namespace Petsc
{
BaseMatrix::~BaseMatrix() = default;
} // namespace Petsc
} // namespace Wrappers
} // namespace Internal
} // namespace HappyHeart
/// @} // addtogroup ThirdPartyGroup
......@@ -54,7 +54,7 @@ namespace HappyHeart
explicit BaseMatrix() = default;
//! Destructor.
virtual ~BaseMatrix() = default;
virtual ~BaseMatrix();
//! Copy constructor.
BaseMatrix(const BaseMatrix&) = default;
......
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