Hello Dr. Bangerth,
I apologize for the poor communication from my side.
Below are the changes I made to the refinement process in Step-18 in red:
typedef TrilinosWrappers::MPI::Vector vectorType;
std::vector<std::vector<vectorType>> history_field (dim, std::vector< Vector<double> >(dim));
std::vector< std::vector< Vector<double> > >
local_history_values_at_qpoints (dim, std::vector< Vector<double> >(dim)),
local_history_fe_values (dim, std::vector< Vector<double> >(dim));
for (unsigned int i=0; i<dim; ++i)
for (unsigned int j=0; j<dim; ++j)
{
history_field[i][j].reinit(locally_owned_dofs, locally_relevant_dofs, mpi_communicator);
local_history_values_at_qpoints[i][j].reinit(quadrature.size());
local_history_fe_values[i][j].reinit(history_fe.n_dofs_per_cell());
}
.
.
[Calculate the global field]
.
.
history_field.compress(VectorOperation::add);
The above section of code gives an error during the compress operation. The error message is -
‘class std::vector<std::vector<dealii::TrilinosWrappers::MPI::Vector, std::allocator<dealii::TrilinosWrappers::MPI::Vector> > >’ has no member named ‘compress’
The above error message is expected as the compress operation is not defined for that datatype. However, I am unsure how to do the compress operation, as mentioned in Step-18. Please advice.
Best,
Raghunandan.