From: Timo Heister Date: Mon, 22 Oct 2012 21:31:01 +0000 (+0000) Subject: fix Trilinos tests for Trilinos 11. X-Git-Tag: v8.0.0~1931 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69869434a5a610dfb58070a453e81f743f3db5f0;p=dealii.git fix Trilinos tests for Trilinos 11. git-svn-id: https://svn.dealii.org/trunk@27172 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/trilinos/64.cc b/tests/trilinos/64.cc index 1b7b9addb0..b57ea9cf80 100644 --- a/tests/trilinos/64.cc +++ b/tests/trilinos/64.cc @@ -68,7 +68,7 @@ int main (int argc,char **argv) Utilities::Trilinos::get_n_mpi_processes(Utilities::Trilinos::comm_world()); Assert(n_dofs%n_jobs==0, ExcInternalError()); const unsigned int n_local_dofs=n_dofs/n_jobs; - Epetra_Map map(n_dofs, n_local_dofs, Utilities::Trilinos::comm_world()); + Epetra_Map map(static_cast(n_dofs), static_cast(n_local_dofs), Utilities::Trilinos::comm_world()); TrilinosWrappers::SparseMatrix v2 (map, 5); test (v2); } diff --git a/tests/trilinos/slowness_03.cc b/tests/trilinos/slowness_03.cc index 86aaf7c955..19fcbf64b6 100644 --- a/tests/trilinos/slowness_03.cc +++ b/tests/trilinos/slowness_03.cc @@ -33,7 +33,7 @@ void test () const unsigned int N = 200; // build the sparse matrix - Epetra_Map map (N*N, 0, Utilities::Trilinos::comm_world()); + Epetra_Map map (static_cast(N*N), 0, Utilities::Trilinos::comm_world()); TrilinosWrappers::SparseMatrix matrix (map, 5); for(unsigned int i=0; i(N*N), 0, Utilities::Trilinos::comm_world()); TrilinosWrappers::SparseMatrix matrix (map, 5); for(unsigned int i_=0; i_