From: Daniel Arndt Date: Mon, 18 Feb 2019 14:00:10 +0000 (+0100) Subject: Call the base class constructor explicitly X-Git-Tag: v9.1.0-rc1~309^2~11 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc11b29a358853de1152cd9d358049a0bbee19f4;p=dealii.git Call the base class constructor explicitly --- 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))))) {}