Zoltan2::PartitioningSolution warning
Created by: mhoemmen
@trilinos/zoltan2 Looks like the class needs a virtual destructor.
.../Trilinos/packages/teuchos/core/src/Teuchos_RCPDecl.hpp:985:33: warning: delete called on non-final 'Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > >' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
void free( T* ptr ) { if(ptr) delete ptr; }
^
.../Trilinos/packages/teuchos/core/src/Teuchos_RCPNode.hpp:550:22: note: in instantiation of member function 'Teuchos::DeallocDelete<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > >::free' requested here
dealloc_.free(tmp_ptr);
^
.../Trilinos/packages/teuchos/core/src/Teuchos_RCPNode.hpp:495:3: note: in instantiation of member function 'Teuchos::RCPNodeTmpl<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > >, Teuchos::DeallocDelete<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > > >::delete_obj' requested here
RCPNodeTmpl(T* p, Dealloc_T dealloc, bool has_ownership_in)
^
.../Trilinos/packages/teuchos/core/src/Teuchos_RCP.hpp:93:14: note: in instantiation of member function 'Teuchos::RCPNodeTmpl<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > >, Teuchos::DeallocDelete<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > > >::RCPNodeTmpl' requested here
return new RCPNodeTmpl<T,DeallocDelete<T> >(p, DeallocDelete<T>(), has_ownership_in);
^
.../Trilinos/packages/teuchos/core/src/Teuchos_RCP.hpp:195:11: note: in instantiation of function template specialization 'Teuchos::RCP_createNewRCPNodeRawPtr<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > >' requested here
, node_(RCP_createNewRCPNodeRawPtr(p, has_ownership_in))
^
.../Trilinos/packages/teuchos/core/src/Teuchos_RCP.hpp:574:10: note: in instantiation of member function 'Teuchos::RCP<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > >::RCP' requested here
return RCP<T>(p, owns_mem);
^
.../Trilinos/packages/zoltan2/src/problems/Zoltan2_PartitioningProblem.hpp:625:15: note: in instantiation of function template specialization 'Teuchos::rcp<Zoltan2::PartitioningSolution<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > > >' requested here
solution_ = rcp(soln);
^
.../Trilinos/packages/zoltan2/test/helpers/GeometricGenerator.hpp:2441:14: note: in instantiation of member function 'Zoltan2::PartitioningProblem<Zoltan2::XpetraMultiVectorAdapter<Tpetra::MultiVector<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, false> > >::solve' requested here
problem->solve();
^
.../Trilinos/packages/zoltan2/test/helpers/GeometricGenerator.hpp:2649:11: note: in instantiation of member function 'GeometricGen::GeometricGenerator<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >::predistributeMJ' requested here
this->predistributeMJ(coordinate_grid_parts);
^
.../Trilinos/packages/zoltan2/test/helpers/GeometricGenerator.hpp:1728:6: note: in instantiation of member function 'GeometricGen::GeometricGenerator<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >::redistribute' requested here
redistribute();
^
.../Trilinos/packages/zoltan2/test/helpers/UserInputForTests.hpp:887:29: note: in instantiation of member function 'GeometricGen::GeometricGenerator<double, int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >::GeometricGenerator' requested here
geometricgen_t * gg = new geometricgen_t(geoparams, this->tcomm_);