From: Maximilian Bergbauer Date: Thu, 21 Nov 2024 13:31:36 +0000 (+0100) Subject: Const correctness MappingInfo X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17878%2Fhead;p=dealii.git Const correctness MappingInfo --- diff --git a/include/deal.II/matrix_free/fe_point_evaluation.h b/include/deal.II/matrix_free/fe_point_evaluation.h index 5fd0de9d71..aead550421 100644 --- a/include/deal.II/matrix_free/fe_point_evaluation.h +++ b/include/deal.II/matrix_free/fe_point_evaluation.h @@ -685,8 +685,8 @@ protected: * faces. */ FEPointEvaluationBase( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, const unsigned int first_selected_component = 0, const bool is_interior = true); @@ -1054,7 +1054,8 @@ protected: * Pointer to currently used mapping info (either on the fly or external * precomputed). */ - ObserverPointer> mapping_info; + ObserverPointer> + mapping_info; /** * The current cell index to access mapping data from mapping info. @@ -1193,8 +1194,8 @@ public: * components starting from this parameter. */ FEPointEvaluation( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, const unsigned int first_selected_component = 0); /** @@ -1567,10 +1568,10 @@ public: * Constructor. Allows to select if interior or exterior face is selected. */ FEFacePointEvaluation( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, - const bool is_interior = true, - const unsigned int first_selected_component = 0); + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, + const bool is_interior = true, + const unsigned int first_selected_component = 0); /** * Reinitialize the evaluator to point to the correct precomputed mapping of @@ -1854,10 +1855,10 @@ FEPointEvaluationBase:: template FEPointEvaluationBase:: FEPointEvaluationBase( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, - const unsigned int first_selected_component, - const bool is_interior) + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, + const unsigned int first_selected_component, + const bool is_interior) : n_q_batches(numbers::invalid_unsigned_int) , n_q_points(numbers::invalid_unsigned_int) , n_q_points_scalar(numbers::invalid_unsigned_int) @@ -2377,9 +2378,9 @@ FEPointEvaluationBase:: template FEPointEvaluation::FEPointEvaluation( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, - const unsigned int first_selected_component) + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, + const unsigned int first_selected_component) : FEPointEvaluationBase( mapping_info, fe, @@ -2439,7 +2440,7 @@ FEPointEvaluation::reinit( AssertThrow(this->mapping_info_on_the_fly.get() != nullptr, ExcNotImplemented()); - this->mapping_info->reinit(cell, unit_points); + this->mapping_info_on_the_fly->reinit(cell, unit_points); this->must_reinitialize_pointers = false; if (!this->fast_path) @@ -3245,10 +3246,10 @@ FEPointEvaluation:: template FEFacePointEvaluation:: FEFacePointEvaluation( - NonMatching::MappingInfo &mapping_info, - const FiniteElement &fe, - const bool is_interior, - const unsigned int first_selected_component) + const NonMatching::MappingInfo &mapping_info, + const FiniteElement &fe, + const bool is_interior, + const unsigned int first_selected_component) : FEPointEvaluationBase( mapping_info, fe,