timerfile.leave_subsection();\r
}\r
\r
- //Class to be able to output results correctly when using Paraview\r
- template<int dim, class DH=DoFHandler<dim> >\r
- class FilteredDataOut : public DataOut<dim, DH>\r
- {\r
- public:\r
- FilteredDataOut ()\r
- {}\r
-\r
- virtual ~FilteredDataOut() {}\r
-\r
- virtual typename DataOut<dim, DH>::cell_iterator\r
- first_cell ()\r
- {\r
- typename DataOut<dim, DH>::active_cell_iterator\r
- cell = this->dofs->begin_active();\r
- while ((cell != this->dofs->end()) &&\r
- (!cell->is_locally_owned()))\r
- ++cell;\r
- return cell;\r
- }\r
-\r
- virtual typename DataOut<dim, DH>::cell_iterator\r
- next_cell (const typename DataOut<dim, DH>::cell_iterator &old_cell)\r
- {\r
- if (old_cell != this->dofs->end())\r
- {\r
- const IteratorFilters::LocallyOwnedCell predicate{};\r
- return\r
- ++(FilteredIterator<typename DataOut<dim, DH>::active_cell_iterator>\r
- (predicate,old_cell));\r
- }\r
- else\r
- return old_cell;\r
- }\r
- };\r
-\r
- template<int dim, class DH=DoFHandler<dim> >\r
- class FilteredDataOutFaces : public DataOutFaces<dim,DH>\r
- {\r
- public:\r
- FilteredDataOutFaces ()\r
- {}\r
-\r
- virtual ~FilteredDataOutFaces() {}\r
-\r
- virtual typename DataOutFaces<dim,DH>::cell_iterator\r
- first_cell ()\r
- {\r
- typename DataOutFaces<dim,DH>::active_cell_iterator\r
- cell = this->dofs->begin_active();\r
- while ((cell!=this->dofs->end()) && (!cell->is_locally_owned()))\r
- ++cell;\r
- return cell;\r
- }\r
-\r
- virtual typename DataOutFaces<dim,DH>::cell_iterator\r
- next_cell (const typename DataOutFaces<dim, DH>::cell_iterator &old_cell)\r
- {\r
- if (old_cell!=this->dofs->end())\r
- {\r
- const IteratorFilters::LocallyOwnedCell predicate{};\r
- return\r
- ++(FilteredIterator<typename DataOutFaces<dim,DH>::active_cell_iterator>\r
- (predicate,old_cell));\r
- }\r
- else\r
- return old_cell;\r
- }\r
- };\r
-\r
//Class to compute gradient of the pressure\r
template <int dim>\r
class GradientPostprocessor : public DataPostprocessorVector<dim>\r
}\r
\r
// Add the results to the solution to create the output file for Paraview\r
- FilteredDataOut<dim> data_out;\r
+ DataOut<dim> data_out;\r
std::vector<DataComponentInterpretation::DataComponentInterpretation>\r
comp_type(dim,\r
DataComponentInterpretation::component_is_part_of_vector);\r