From: Peter Munch Date: Wed, 9 Jun 2021 08:37:01 +0000 (+0200) Subject: Make method/field in DataOut accessible X-Git-Tag: v9.4.0-rc1~1242^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12420%2Fhead;p=dealii.git Make method/field in DataOut accessible --- diff --git a/include/deal.II/numerics/data_out_dof_data.h b/include/deal.II/numerics/data_out_dof_data.h index 264294e24d..5ee9214aa5 100644 --- a/include/deal.II/numerics/data_out_dof_data.h +++ b/include/deal.II/numerics/data_out_dof_data.h @@ -1007,6 +1007,7 @@ protected: * %Function by which the base class's functions get to know what patches * they shall write to a file. */ +public: virtual const std::vector & get_patches() const override; @@ -1017,13 +1018,6 @@ protected: virtual std::vector get_dataset_names() const override; - /** - * Extracts the finite elements stored in the dof_data object, including a - * dummy object of FE_DGQ(0) in case only the triangulation is used. - */ - std::vector>> - get_fes() const; - /** * Overload of the respective DataOutInterface::get_nonscalar_data_ranges() * function. See there for a more extensive documentation. @@ -1035,6 +1029,14 @@ protected: DataComponentInterpretation::DataComponentInterpretation>> get_nonscalar_data_ranges() const override; +protected: + /** + * Extracts the finite elements stored in the dof_data object, including a + * dummy object of FE_DGQ(0) in case only the triangulation is used. + */ + std::vector>> + get_fes() const; + // Make all template siblings friends. Needed for the merge_patches() // function. template diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h index d7db51a919..2b6f96ce05 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -885,7 +885,6 @@ namespace internal virtual std::size_t memory_consumption() const override; - private: /** * Pointer to the data vector. Note that ownership of the vector pointed * to remains with the caller of this class.