system_rhs);
}
- system_matrix.compress ();
- system_rhs.compress ();
+ system_matrix.compress (VectorOperation::add);
+ system_rhs.compress (VectorOperation::add);
}
}
}
- test1.compress(Add);
+ test1.compress(VectorOperation::add);
//TrilinosWrappers::MPI::Vector test(test1.vector_partitioner()); // works
//TrilinosWrappers::MPI::Vector test(locally_owned); // works
if (myid==0)
deallog << "before compress: " << test(locally_owned.nth_index_in_set(5)) << endl;
- test.compress(Insert);
+ test.compress(VectorOperation::insert);
if (myid==0)
deallog << "after compress: " << test(locally_owned.nth_index_in_set(5)) << endl;
// change x, transfer, and check again
x*=2.0;
- x.compress();
v=x;
Assert(v(myid*2) == myid*4.0, ExcInternalError());
}
if ((n_procs == 1) || (my_id == 1))
A.add(2,3, 2.0);
- A.compress();
+ A.compress(VectorOperation::add);
TrilinosWrappers::MPI::Vector x, y;
x.reinit (col_partitioning, MPI_COMM_WORLD);
}
if ((n_procs == 1) || (my_id == 1))
A.add(2,3, 2.0);
- A.compress();
+ A.compress(VectorOperation::add);
TrilinosWrappers::MPI::Vector x, y;
x.reinit (col_partitioning, MPI_COMM_WORLD);
for (unsigned int i = 0; i<n_entries; ++i)
if (row_partitioning.is_element(line[i]))
A.add(line[i], local_index[i], local_value[i]);
- A.compress();
+ A.compress(VectorOperation::add);
if (my_id == 0)
{
TrilinosWrappers::SparseMatrix AtA;
A.Tmmult (AtA, A);
- AtA.compress ();
/* AtA should be
A.reinit (sp);
if ((n_procs == 1) || (my_id == 1))
A.add(2,3, 2.0);
- A.compress();
+ A.compress(VectorOperation::add);
if ((n_procs == 1) || (my_id == 1))
A.print(deallog.get_file_stream());