From: Timo Heister Date: Tue, 1 Sep 2015 21:18:43 +0000 (-0400) Subject: fix compilation error X-Git-Tag: v8.4.0-rc2~488^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1507%2Fhead;p=dealii.git fix compilation error Type case to make sure the correct reinit() is picked up (not the template). Error message: /ssd/deal-git/tests/trilinos/trilinos_sparsity_pattern_03.cc:42: undefined reference to `void dealii::TrilinosWrappers::SparsityPattern::reinit(dealii::IndexSet const&, dealii::IndexSet const&, int const&, int const&, bool)' --- diff --git a/tests/trilinos/trilinos_sparsity_pattern_03.cc b/tests/trilinos/trilinos_sparsity_pattern_03.cc index fde4cf587c..0ec85c4e3c 100644 --- a/tests/trilinos/trilinos_sparsity_pattern_03.cc +++ b/tests/trilinos/trilinos_sparsity_pattern_03.cc @@ -39,7 +39,7 @@ void test () columns.add_range(3*myid, 3*myid+3); columns.compress(); - sp.reinit(rows, columns, MPI_COMM_WORLD, 0); + sp.reinit(rows, columns, MPI_COMM_WORLD, 0u); deallog << "SP::is_compressed(): " << sp.is_compressed() << std::endl; for (unsigned int i=2*myid; i<2*myid+2; ++i) diff --git a/tests/trilinos/trilinos_sparsity_pattern_04.cc b/tests/trilinos/trilinos_sparsity_pattern_04.cc index 89d2fc6ff2..b964fc3ed9 100644 --- a/tests/trilinos/trilinos_sparsity_pattern_04.cc +++ b/tests/trilinos/trilinos_sparsity_pattern_04.cc @@ -45,7 +45,7 @@ void test () columns.compress(); // this creates a matrix with optimized path for off-processor entries - sp.reinit(rows, columns, writable_rows, MPI_COMM_WORLD, 0); + sp.reinit(rows, columns, writable_rows, MPI_COMM_WORLD, 0u); for (unsigned int i=2*myid; i<2*myid+2; ++i) for (unsigned int j=0; j<3*n_procs; ++j) @@ -83,7 +83,7 @@ void test () // reinit, this time without giving writable rows -> Trilinos must manage // ghost entries and throw away the off-processor sparsity pattern - sp.reinit(rows, columns, MPI_COMM_WORLD, 0); + sp.reinit(rows, columns, MPI_COMM_WORLD, 0u); for (unsigned int i=2*myid; i<2*myid+2; ++i) for (unsigned int j=0; j<3*n_procs; ++j) @@ -119,7 +119,7 @@ void test () // now create again a pattern with writable rows - sp.reinit(rows, columns, writable_rows, MPI_COMM_WORLD, 0); + sp.reinit(rows, columns, writable_rows, MPI_COMM_WORLD, 0u); for (unsigned int i=2*myid; i<2*myid+2; ++i) for (unsigned int j=0; j<3*n_procs; ++j)