From 97c70302eef31b165b86e08cbc20873245f2d3d0 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Wed, 4 Feb 2015 15:20:16 +0100 Subject: [PATCH] patched error_estimator --- source/numerics/error_estimator.cc | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/source/numerics/error_estimator.cc b/source/numerics/error_estimator.cc index 61d129d7e5..f73a36ead9 100644 --- a/source/numerics/error_estimator.cc +++ b/source/numerics/error_estimator.cc @@ -96,7 +96,7 @@ namespace internal * resizing to a smaller size doesn't imply memory allocation, this is * fast. */ - template + template struct ParallelData { static const unsigned int dim = DH::dimension; @@ -128,7 +128,7 @@ namespace internal * particular in presence of multiple threads where synchronisation * makes things even slower. */ - std::vector > > phi; + std::vector > > phi; /** * A vector for the gradients of the finite element function on one cell @@ -138,12 +138,12 @@ namespace internal * the number of the quadrature point. The first index denotes the index * of the solution vector. */ - std::vector > > > psi; + std::vector > > > psi; /** * The same vector for a neighbor cell */ - std::vector > > > neighbor_psi; + std::vector > > > neighbor_psi; /** * The normal vectors of the finite element function on one face @@ -204,9 +204,9 @@ namespace internal }; - template + template template - ParallelData:: + ParallelData:: ParallelData (const FE &fe, const dealii::hp::QCollection &face_quadratures, const dealii::hp::MappingCollection &mapping, @@ -238,17 +238,17 @@ namespace internal face_quadratures, update_gradients), phi (n_solution_vectors, - std::vector > + std::vector > (face_quadratures.max_n_quadrature_points(), - std::vector (fe.n_components()))), + std::vector (fe.n_components()))), psi (n_solution_vectors, - std::vector > > + std::vector > > (face_quadratures.max_n_quadrature_points(), - std::vector > (fe.n_components()))), + std::vector > (fe.n_components()))), neighbor_psi (n_solution_vectors, - std::vector > > + std::vector > > (face_quadratures.max_n_quadrature_points(), - std::vector > (fe.n_components()))), + std::vector > (fe.n_components()))), normal_vectors (face_quadratures.max_n_quadrature_points()), coefficient_values1 (face_quadratures.max_n_quadrature_points()), coefficient_values (face_quadratures.max_n_quadrature_points(), @@ -263,9 +263,9 @@ namespace internal - template + template void - ParallelData::resize (const unsigned int active_fe_index) + ParallelData::resize (const unsigned int active_fe_index) { const unsigned int n_q_points = face_quadratures[active_fe_index].size(); const unsigned int n_components = finite_element.n_components(); @@ -332,9 +332,9 @@ namespace internal * Actually do the computation based on the evaluated gradients in * ParallelData. */ - template + template std::vector - integrate_over_face (ParallelData ¶llel_data, + integrate_over_face (ParallelData ¶llel_data, const typename DH::face_iterator &face, dealii::hp::FEFaceValues &fe_face_values_cell) { @@ -475,7 +475,7 @@ namespace internal template void integrate_over_regular_face (const std::vector &solutions, - ParallelData ¶llel_data, + ParallelData ¶llel_data, std::map > &local_face_integrals, const typename DH::active_cell_iterator &cell, const unsigned int face_no, @@ -552,7 +552,7 @@ namespace internal template void integrate_over_irregular_face (const std::vector &solutions, - ParallelData ¶llel_data, + ParallelData ¶llel_data, std::map > &local_face_integrals, const typename DH::active_cell_iterator &cell, const unsigned int face_no, @@ -646,7 +646,7 @@ namespace internal template void estimate_one_cell (const typename DH::active_cell_iterator &cell, - ParallelData ¶llel_data, + ParallelData ¶llel_data, std::map > &local_face_integrals, const std::vector &solutions) { @@ -968,7 +968,7 @@ estimate (const Mapping &mapping, // all the data needed in the error estimator by each of the threads is // gathered in the following structures const hp::MappingCollection mapping_collection(mapping); - const internal::ParallelData + const internal::ParallelData parallel_data (dof_handler.get_fe(), face_quadratures, mapping_collection, -- 2.39.5