From bc11b29a358853de1152cd9d358049a0bbee19f4 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 18 Feb 2019 15:00:10 +0100 Subject: [PATCH] Call the base class constructor explicitly --- source/lac/trilinos_epetra_vector.cc | 6 ++++-- source/lac/trilinos_tpetra_vector.cc | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/source/lac/trilinos_epetra_vector.cc b/source/lac/trilinos_epetra_vector.cc index cc1857686f..64f2daad3f 100644 --- a/source/lac/trilinos_epetra_vector.cc +++ b/source/lac/trilinos_epetra_vector.cc @@ -41,7 +41,8 @@ namespace LinearAlgebra namespace EpetraWrappers { Vector::Vector() - : vector(new Epetra_FEVector( + : Subscriptor() + , vector(new Epetra_FEVector( Epetra_Map(0, 0, 0, Utilities::Trilinos::comm_self()))) {} @@ -56,7 +57,8 @@ namespace LinearAlgebra Vector::Vector(const IndexSet ¶llel_partitioner, const MPI_Comm &communicator) - : vector(new Epetra_FEVector( + : Subscriptor() + , vector(new Epetra_FEVector( parallel_partitioner.make_trilinos_map(communicator, false))) {} diff --git a/source/lac/trilinos_tpetra_vector.cc b/source/lac/trilinos_tpetra_vector.cc index 451acc9ce3..7df8249fd6 100644 --- a/source/lac/trilinos_tpetra_vector.cc +++ b/source/lac/trilinos_tpetra_vector.cc @@ -42,7 +42,8 @@ namespace LinearAlgebra { template Vector::Vector() - : vector(new Tpetra::Vector( + : Subscriptor() + , vector(new Tpetra::Vector( Teuchos::RCP>( new Tpetra::Map( 0, @@ -65,7 +66,8 @@ namespace LinearAlgebra template Vector::Vector(const IndexSet ¶llel_partitioner, const MPI_Comm &communicator) - : vector(new Tpetra::Vector( + : Subscriptor() + , vector(new Tpetra::Vector( Teuchos::rcp(new Tpetra::Map( parallel_partitioner.make_tpetra_map(communicator, false))))) {} -- 2.39.5