<h3>Specific improvements</h3>
<ol>
+<li> Fixed: DerivativeApproximation for distributed computations.
+<br>
+(Timo Heister, 2011/12/15)
+
<li> Changed: The ExcMessage exception class took an argument of
type <code>char*</code> that was displayed when the exception
was raised. However, character pointers are awkward to work with
#include <deal.II/lac/block_vector.h>
#include <deal.II/lac/petsc_vector.h>
#include <deal.II/lac/petsc_block_vector.h>
+#include <deal.II/lac/trilinos_vector.h>
+#include <deal.II/lac/trilinos_block_vector.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/grid_tools.h>
#include <deal.II/dofs/dof_accessor.h>
std::advance (endc, static_cast<int>(index_interval.second));
for (; cell!=endc; ++cell, ++derivative_norm_on_this_cell)
- {
- typename DerivativeDescription::Derivative derivative;
- // call the function doing the actual
- // work on this cell
- DerivativeApproximation::
- template approximate_cell<DerivativeDescription,dim,DH,InputVector>
- (mapping,
- dof_handler,
- solution,
- component,
- cell,
- derivative);
- // evaluate the norm and fill the vector
- *derivative_norm_on_this_cell
- = DerivativeDescription::derivative_norm (derivative);
- }
+ if (cell->is_locally_owned())
+ {
+ typename DerivativeDescription::Derivative derivative;
+ // call the function doing the actual
+ // work on this cell
+ DerivativeApproximation::
+ template approximate_cell<DerivativeDescription,dim,DH,InputVector>
+ (mapping,
+ dof_handler,
+ solution,
+ component,
+ cell,
+ derivative);
+ // evaluate the norm and fill the vector
+ *derivative_norm_on_this_cell
+ = DerivativeDescription::derivative_norm (derivative);
+ }
}
INSTANTIATE(PETScWrappers::BlockVector, hp::DoFHandler);
#endif
+#ifdef DEAL_II_USE_TRILINOS
+INSTANTIATE(TrilinosWrappers::Vector, DoFHandler);
+INSTANTIATE(TrilinosWrappers::BlockVector, DoFHandler);
+INSTANTIATE(TrilinosWrappers::MPI::Vector, DoFHandler);
+INSTANTIATE(TrilinosWrappers::MPI::BlockVector, DoFHandler);
+
+//TODO: test hp before instantiating
+#endif
+
#undef INSTANTIATE
template