//---------------------------- trilinos_64.cc ---------------------------
// $Id$
-// Version: $Name$
+// Version: $Name$
//
-// Copyright (C) 2004, 2005, 2008 by the deal.II authors
+// Copyright (C) 2004, 2005, 2008, 2013 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// This test should be run on multiple processors.
-#include "../tests.h"
+#include "../tests.h"
#include <deal.II/base/utilities.h>
#include <deal.II/lac/trilinos_sparse_matrix.h>
#include <Epetra_Map.h>
template<typename MatrixType>
void test (MatrixType &m)
{
- m.set(0,0,1.);
+ m.set(0,0,1.);
m.compress();
m = 0;
m.compress();
-int main (int argc,char **argv)
+int main (int argc,char **argv)
{
std::ofstream logfile("64/output");
deallog.attach(logfile);
deallog.depth_console(0);
- deallog.threshold_double(1.e-10);
+ deallog.threshold_double(1.e-10);
Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv);
// check
// TrilinosWrappers::SparseMatrix
- const unsigned int n_jobs =
+ const unsigned int n_jobs =
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(static_cast<int>(n_dofs), static_cast<int>(n_local_dofs), Utilities::Trilinos::comm_world());
+ Epetra_Map map(static_cast<TrilinosWrappers::types::int_type>(n_dofs),
+ static_cast<TrilinosWrappers::types::int_type>(n_local_dofs),
+ Utilities::Trilinos::comm_world());
TrilinosWrappers::SparseMatrix v2 (map, 5);
test (v2);
}
<< "Aborting!" << std::endl
<< "----------------------------------------------------"
<< std::endl;
-
+
return 1;
}
- catch (...)
+ catch (...)
{
std::cerr << std::endl << std::endl
<< "----------------------------------------------------"