if (size() != v.size())
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map = Epetra_Map (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ map = Epetra_Map (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
map = Epetra_Map (v.size(), 0, Epetra_SerialComm());
#endif
Vector::Vector (const dealii::Vector<number> &v)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD))
+ map (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF))
#else
map (v.size(), 0, Epetra_SerialComm())
#endif
{
vector.release();
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map = Epetra_LocalMap (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ map = Epetra_LocalMap (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
map = Epetra_LocalMap (v.size(), 0, Epetra_SerialComm());
#endif
// produce a dummy local map and pass it
// off to the other function
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
// produce a dummy local map and pass it
// off to the other function
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
PreconditionBase::PreconditionBase()
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
:
- communicator (MPI_COMM_WORLD)
+ communicator (MPI_COMM_SELF)
#endif
{}
SparseMatrix::SparseMatrix ()
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (0, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (0, 0, Epetra_SerialComm()),
#endif
const unsigned int n_max_entries_per_row)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
- col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+ col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (m, 0, Epetra_SerialComm()),
col_map (n, 0, Epetra_SerialComm()),
const std::vector<unsigned int> &n_entries_per_row)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
- col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+ col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (m, 0, Epetra_SerialComm()),
col_map (n, 0, Epetra_SerialComm()),
SparseMatrix::reinit (const SparsityType &sparsity_pattern)
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
const double drop_tolerance)
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
matrix.reset();
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
row_map = Epetra_Map (0, 0, Epetra_SerialComm());
#endif
SparsityPattern::SparsityPattern ()
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (0, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (0, 0, Epetra_SerialComm()),
#endif
const unsigned int n_entries_per_row)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
- col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+ col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (m, 0, Epetra_SerialComm()),
col_map (n, 0, Epetra_SerialComm()),
const std::vector<unsigned int> &n_entries_per_row)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
- col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+ row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+ col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
#else
row_map (m, 0, Epetra_SerialComm()),
col_map (n, 0, Epetra_SerialComm()),
const unsigned int n_entries_per_row)
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
const std::vector<unsigned int> &n_entries_per_row)
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
SparsityPattern::copy_from (const SparsityType &sp)
{
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_MpiComm trilinos_communicator (MPI_COMM_WORLD);
+ Epetra_MpiComm trilinos_communicator (MPI_COMM_SELF);
#else
Epetra_SerialComm trilinos_communicator;
#endif
graph.reset();
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
row_map = Epetra_Map (0, 0, Epetra_SerialComm());
#endif
Vector::Vector ()
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map (0,0,Epetra_MpiComm(MPI_COMM_WORLD))
+ map (0,0,Epetra_MpiComm(MPI_COMM_SELF))
#else
map (0,0,Epetra_SerialComm())
#endif
Vector::Vector ()
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD))
+ map (0, 0, Epetra_MpiComm(MPI_COMM_SELF))
#else
map (0, 0, Epetra_SerialComm())
#endif
Vector::Vector (const unsigned int n)
:
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map ((int)n, 0, Epetra_MpiComm(MPI_COMM_WORLD))
+ map ((int)n, 0, Epetra_MpiComm(MPI_COMM_SELF))
#else
map ((int)n, 0, Epetra_SerialComm())
#endif
vector.reset();
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- map = Epetra_LocalMap ((int)n, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ map = Epetra_LocalMap ((int)n, 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
map = Epetra_LocalMap ((int)n, 0, Epetra_SerialComm());
#endif
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
vector(std::auto_ptr<Epetra_FEVector>
(new Epetra_FEVector(
- Epetra_Map(0,0,Epetra_MpiComm(MPI_COMM_WORLD)))))
+ Epetra_Map(0,0,Epetra_MpiComm(MPI_COMM_SELF)))))
#else
vector(std::auto_ptr<Epetra_FEVector>
(new Epetra_FEVector(
vector.reset();
#ifdef DEAL_II_COMPILER_SUPPORTS_MPI
- Epetra_Map map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+ Epetra_Map map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
#else
Epetra_Map map (0, 0, Epetra_SerialComm());
#endif