From 1fa0f4cb36813e3369cb791d480146af4867a76f Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Fri, 3 Feb 2017 15:29:42 +0100 Subject: [PATCH] WorkStream: add a note on hp-FEM --- include/deal.II/base/work_stream.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/deal.II/base/work_stream.h b/include/deal.II/base/work_stream.h index a924961244..9345b433cb 100644 --- a/include/deal.II/base/work_stream.h +++ b/include/deal.II/base/work_stream.h @@ -126,6 +126,17 @@ DEAL_II_NAMESPACE_OPEN * unused and may be re-used for the next invocation of the worker function, * on this or another thread. * + * The member variables in ScratchData and CopyData can be accessed + * independently of other concurrent uses of copies of these data structures. + * Therefore, it is perfectly fine to resize auxiliary data structures + * associated with ScratchData and CopyData to different lengths on each cell. + * For example, a vector holding densities at each quadrature point which is used with + * LocalIntegrators::L2::weighted_mass_matrix() to assemble the local matrix + * could be resized to the corresponding number of quadrature points of the + * current cell in hp::DoFHandler. Similarly, local stiffness matrix in + * CopyData can be resized in accordance with the number of local DoFs on the + * current cell. + * * The functions in this namespace only really work in parallel when * multithread mode was selected during deal.II configuration. Otherwise they * simply work on each item sequentially. -- 2.39.5