From 397408b692ab8faff404bd73ee463a89b74683e4 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 1 Sep 2015 17:18:43 -0400 Subject: [PATCH] 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)' --- tests/trilinos/trilinos_sparsity_pattern_03.cc | 2 +- tests/trilinos/trilinos_sparsity_pattern_04.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.5