]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Call the base class constructor explicitly
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 18 Feb 2019 14:00:10 +0000 (15:00 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 20 Feb 2019 12:46:19 +0000 (13:46 +0100)
source/lac/trilinos_epetra_vector.cc
source/lac/trilinos_tpetra_vector.cc

index cc1857686f9bec48550910d6b447ed588c0f348e..64f2daad3fcf50b0e9c7baff87e2f4fefd0963e8 100644 (file)
@@ -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 &parallel_partitioner,
                    const MPI_Comm &communicator)
-      : vector(new Epetra_FEVector(
+      : Subscriptor()
+      , vector(new Epetra_FEVector(
           parallel_partitioner.make_trilinos_map(communicator, false)))
     {}
 
index 451acc9ce3c429e19e9dbd926877a529dd5910ea..7df8249fd6c018435d5356c26e24c2956021f635 100644 (file)
@@ -42,7 +42,8 @@ namespace LinearAlgebra
   {
     template <typename Number>
     Vector<Number>::Vector()
-      : vector(new Tpetra::Vector<Number, int, types::global_dof_index>(
+      : Subscriptor()
+      , vector(new Tpetra::Vector<Number, int, types::global_dof_index>(
           Teuchos::RCP<Tpetra::Map<int, types::global_dof_index>>(
             new Tpetra::Map<int, types::global_dof_index>(
               0,
@@ -65,7 +66,8 @@ namespace LinearAlgebra
     template <typename Number>
     Vector<Number>::Vector(const IndexSet &parallel_partitioner,
                            const MPI_Comm &communicator)
-      : vector(new Tpetra::Vector<Number, int, types::global_dof_index>(
+      : Subscriptor()
+      , vector(new Tpetra::Vector<Number, int, types::global_dof_index>(
           Teuchos::rcp(new Tpetra::Map<int, types::global_dof_index>(
             parallel_partitioner.make_tpetra_map(communicator, false)))))
     {}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.