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<int>(n_dofs), static_cast<int>(n_local_dofs), Utilities::Trilinos::comm_world());
TrilinosWrappers::SparseMatrix v2 (map, 5);
test (v2);
}
const unsigned int N = 200;
// build the sparse matrix
- Epetra_Map map (N*N, 0, Utilities::Trilinos::comm_world());
+ Epetra_Map map (static_cast<int>(N*N), 0, Utilities::Trilinos::comm_world());
TrilinosWrappers::SparseMatrix matrix (map, 5);
for(unsigned int i=0; i<N; i++)
for(unsigned int j=0; j<N; j++)
}
// build the sparse matrix
- Epetra_Map map (N*N, 0, Utilities::Trilinos::comm_world());
+ Epetra_Map map (static_cast<int>(N*N), 0, Utilities::Trilinos::comm_world());
TrilinosWrappers::SparseMatrix matrix (map, 5);
for(unsigned int i_=0; i_<N; i_++)
for(unsigned int j_=0; j_<N; j_++)
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