deal.II version GIT relicensing-7040-g409d9ea789 2026-11-06 04:40:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
data_out_dof_data.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 1999 - 2025 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_data_out_dof_data_h
14#define dealii_data_out_dof_data_h
15
16
17
18#include <deal.II/base/config.h>
19
23
25
26#include <deal.II/fe/mapping.h>
27
28#include <deal.II/grid/tria.h>
29
34
37
38#include <memory>
39
41
42namespace Exceptions
43{
48 namespace DataOutImplementation
49 {
54 int,
55 << "The number of subdivisions per patch, " << arg1
56 << ", is not valid. It needs to be greater or equal to "
57 "one, or zero if you want it to be determined "
58 "automatically.");
59
64 "For the operation you are attempting, you first need to "
65 "tell the DataOut or related object which DoFHandler or "
66 "triangulation you would like to work on. This is "
67 "generally done using the 'attach_dof_handler()' or "
68 "'attach_triangulation()' member functions.");
69
74 "For the operation you are attempting, you first need to "
75 "tell the DataOut or related object which DoFHandler "
76 "you would like to work on. This is "
77 "generally done using the 'attach_dof_handler()' "
78 "member function.");
79
84 int,
85 int,
86 int,
87 << "The vector has size " << arg1
88 << " but the DoFHandler object says that there are " << arg2
89 << " degrees of freedom and there are " << arg3
90 << " active cells. The size of your vector needs to be"
91 << " either equal to the number of degrees of freedom (when"
92 << " the data is of type type_dof_data), or equal to the"
93 << " number of active cells (when the data is of type "
94 << " type_cell_data).");
100 std::string,
101 std::size_t,
102 << "Please use only the characters [a-zA-Z0-9_<>()] for" << std::endl
103 << "description strings since some graphics formats will only accept these."
104 << std::endl
105 << "The string you gave was <" << arg1
106 << ">, within which the invalid character is <" << arg1[arg2] << ">."
107 << std::endl);
113 "When attaching a triangulation or DoFHandler object, it is "
114 "not allowed if old data vectors are still referenced. If "
115 "you want to reuse an object of the current type, you first "
116 "need to call the 'clear_data_vector()' function.");
121 int,
122 int,
123 << "You have to give one name per component in your "
124 << "data vector. The number you gave was " << arg1
125 << ", but the number of components is " << arg2 << '.');
130 "While merging sets of patches, the two sets to be merged "
131 "need to refer to data that agrees on the names of the "
132 "various variables represented. In other words, you "
133 "cannot merge sets of patches that originate from "
134 "entirely unrelated simulations.");
139 "While merging sets of patches, the two sets to be merged "
140 "need to refer to data that agrees on the number of "
141 "subdivisions and other properties. In other words, you "
142 "cannot merge sets of patches that originate from "
143 "entirely unrelated simulations.");
144
146 int,
147 std::string,
148 << "When declaring that a number of components in a data "
149 << "set to be output logically form a vector instead of "
150 << "simply a set of scalar fields, you need to specify "
151 << "this for all relevant components. Furthermore, "
152 << "vectors must always consist of exactly <dim> "
153 << "components. However, the vector component at "
154 << "position " << arg1 << " with name <" << arg2
155 << "> does not satisfy these conditions.");
156
158 int,
159 std::string,
160 << "When declaring that a number of components in a data "
161 << "set to be output logically form a tensor instead of "
162 << "simply a set of scalar fields, you need to specify "
163 << "this for all relevant components. Furthermore, "
164 << "tensors must always consist of exactly <dim*dim> "
165 << "components. However, the tensor component at "
166 << "position " << arg1 << " with name <" << arg2
167 << "> does not satisfy these conditions.");
168
169 } // namespace DataOutImplementation
170} // namespace Exceptions
171
172
173namespace internal
174{
175 namespace DataOutImplementation
176 {
201 {
202 real_part,
204 };
205
206
222 template <int dim, int spacedim>
224 {
225 public:
232 const std::vector<std::string> &names,
233 const std::vector<
236
243 const DataPostprocessor<spacedim> *data_postprocessor);
244
248 virtual ~DataEntryBase() = default;
249
254 virtual double
255 get_cell_data_value(const unsigned int cell_number,
256 const ComponentExtractor extract_component) const = 0;
257
262 virtual void
264 const ComponentExtractor extract_component,
265 std::vector<double> &patch_values) const = 0;
266
272 virtual void
274 const FEValuesBase<dim, spacedim> &fe_patch_values,
275 const ComponentExtractor extract_component,
276 std::vector<::Vector<double>> &patch_values_system) const = 0;
277
282 virtual void
284 const FEValuesBase<dim, spacedim> &fe_patch_values,
285 const ComponentExtractor extract_component,
286 std::vector<Tensor<1, spacedim>> &patch_gradients) const = 0;
287
293 virtual void
295 const ComponentExtractor extract_component,
296 std::vector<std::vector<Tensor<1, spacedim>>>
297 &patch_gradients_system) const = 0;
298
303 virtual void
305 const FEValuesBase<dim, spacedim> &fe_patch_values,
306 const ComponentExtractor extract_component,
307 std::vector<Tensor<2, spacedim>> &patch_hessians) const = 0;
308
314 virtual void
316 const ComponentExtractor extract_component,
317 std::vector<std::vector<Tensor<2, spacedim>>>
318 &patch_hessians_system) const = 0;
319
324 virtual bool
325 is_complex_valued() const = 0;
326
330 virtual void
331 clear() = 0;
332
337 virtual std::size_t
339
344
348 const std::vector<std::string> names;
349
355 const std::vector<
358
364
373 unsigned int n_output_variables;
374 };
375
376
393 template <int dim, int spacedim>
395 {
397 const unsigned int n_datasets,
398 const unsigned int n_subdivisions,
399 const std::vector<unsigned int> &n_postprocessor_outputs,
400 const Mapping<dim, spacedim> &mapping,
401 const std::vector<
402 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
405 const bool use_face_values);
406
408 const unsigned int n_datasets,
409 const unsigned int n_subdivisions,
410 const std::vector<unsigned int> &n_postprocessor_outputs,
411 const ::hp::MappingCollection<dim, spacedim> &mapping,
412 const std::vector<
413 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
416 const bool use_face_values);
417
419
420 void
422 std::vector<std::shared_ptr<DataEntryBase<dim, spacedim>>> &dof_data,
423 const typename ::Triangulation<dim, spacedim>::cell_iterator
424 &cell,
425 const unsigned int face = numbers::invalid_unsigned_int);
426
428 get_present_fe_values(const unsigned int dataset) const;
429
430 void
431 resize_system_vectors(const unsigned int n_components);
432
433 const unsigned int n_datasets;
434 const unsigned int n_subdivisions;
435
438 std::vector<std::vector<::Vector<double>>> postprocessed_values;
439
440 const ::hp::MappingCollection<dim, spacedim> mapping_collection;
441 const std::vector<
442 std::shared_ptr<::hp::FECollection<dim, spacedim>>>
445
446 std::vector<std::shared_ptr<::hp::FEValues<dim, spacedim>>>
448 std::vector<std::shared_ptr<::hp::FEFaceValues<dim, spacedim>>>
450 };
451 } // namespace DataOutImplementation
452} // namespace internal
453
454
455// TODO: Most of the documentation of DataOut_DoFData applies to DataOut.
456
592template <int dim,
593 int patch_dim,
594 int spacedim = dim,
595 int patch_spacedim = patch_dim>
596class DataOut_DoFData : public DataOutInterface<patch_dim, patch_spacedim>
597{
598public:
604
605public:
631
636
640 virtual ~DataOut_DoFData() override;
641
650 void
652
662 void
664
740 template <typename VectorType>
741 void
743 const VectorType &data,
744 const std::vector<std::string> &names,
745 const DataVectorType type = type_automatic,
746 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
747 &data_component_interpretation = {});
748
765 template <typename VectorType>
766 void
768 const VectorType &data,
769 const std::string &name,
770 const DataVectorType type = type_automatic,
771 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
772 &data_component_interpretation = {});
773
789 template <typename VectorType>
790 void
792 const DoFHandler<dim, spacedim> &dof_handler,
793 const VectorType &data,
794 const std::vector<std::string> &names,
795 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
796 &data_component_interpretation = {});
797
798
803 template <typename VectorType>
804 void
806 const DoFHandler<dim, spacedim> &dof_handler,
807 const VectorType &data,
808 const std::string &name,
809 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
810 &data_component_interpretation = {});
811
838 template <typename VectorType>
839 void
840 add_data_vector(const VectorType &data,
841 const DataPostprocessor<spacedim> &data_postprocessor);
842
849 template <typename VectorType>
850 void
852 const VectorType &data,
853 const DataPostprocessor<spacedim> &data_postprocessor);
854
872 template <typename VectorType>
873 void
875 const DoFHandler<dim, spacedim> &dof_handler,
877 const std::vector<std::string> &names,
878 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
879 &data_component_interpretation = std::vector<
881
885 template <typename VectorType>
886 void
889 const std::string &name);
890
897 void
899
910 void
912
936 template <int dim2, int spacedim2>
937 void
941
948 virtual void
950
955 std::size_t
957
958protected:
963
968
973
977 std::vector<std::shared_ptr<
980
984 std::vector<std::shared_ptr<
987
993 std::vector<Patch> patches;
994
999public:
1000 virtual const std::vector<Patch> &
1001 get_patches() const override;
1002
1003protected:
1008 virtual std::vector<std::string>
1009 get_dataset_names() const override;
1010
1015 virtual std::vector<
1016 std::tuple<unsigned int,
1017 unsigned int,
1018 std::string,
1021
1022protected:
1029 void
1031
1036 std::vector<std::shared_ptr<::hp::FECollection<dim, spacedim>>>
1037 get_fes() const;
1038
1039 // Make all template siblings friends. Needed for the merge_patches()
1040 // function.
1041 template <int, int, int, int>
1042 friend class DataOut_DoFData;
1043
1046 template <int, class>
1047 friend class MGDataOut;
1048
1049private:
1053 template <typename VectorType>
1054 void
1056 const DoFHandler<dim, spacedim> *dof_handler,
1057 const VectorType &data,
1058 const std::vector<std::string> &names,
1059 const DataVectorType type,
1060 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
1061 &data_component_interpretation,
1062 const bool deduce_output_names);
1063};
1064
1065
1066
1067// -------------------- template and inline functions ------------------------
1068template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1069template <typename VectorType>
1070void
1072 const VectorType &vec,
1073 const std::string &name,
1074 const DataVectorType type,
1075 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
1076 &data_component_interpretation)
1077{
1078 Assert(triangulation != nullptr,
1080 std::vector<std::string> names(1, name);
1081 add_data_vector_internal(
1082 dofs, vec, names, type, data_component_interpretation, true);
1083}
1084
1085
1086
1087template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1088template <typename VectorType>
1089void
1091 const VectorType &vec,
1092 const std::vector<std::string> &names,
1093 const DataVectorType type,
1094 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
1095 &data_component_interpretation)
1096{
1097 Assert(triangulation != nullptr,
1099 add_data_vector_internal(
1100 dofs, vec, names, type, data_component_interpretation, false);
1101}
1102
1103
1104
1105template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1106template <typename VectorType>
1107void
1109 const DoFHandler<dim, spacedim> &dof_handler,
1110 const VectorType &data,
1111 const std::string &name,
1112 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
1113 &data_component_interpretation)
1114{
1115 std::vector<std::string> names(1, name);
1116 add_data_vector_internal(&dof_handler,
1117 data,
1118 names,
1119 type_dof_data,
1120 data_component_interpretation,
1121 true);
1122}
1123
1124
1125
1126template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1127template <typename VectorType>
1128void
1130 const DoFHandler<dim, spacedim> &dof_handler,
1131 const VectorType &data,
1132 const std::vector<std::string> &names,
1133 const std::vector<DataComponentInterpretation::DataComponentInterpretation>
1134 &data_component_interpretation)
1135{
1136 add_data_vector_internal(&dof_handler,
1137 data,
1138 names,
1139 type_dof_data,
1140 data_component_interpretation,
1141 false);
1142}
1143
1144
1145
1146template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1147template <typename VectorType>
1148void
1150 const VectorType &vec,
1151 const DataPostprocessor<spacedim> &data_postprocessor)
1152{
1153 Assert(dofs != nullptr,
1155 add_data_vector(*dofs, vec, data_postprocessor);
1156}
1157
1158
1159
1160template <int dim, int patch_dim, int spacedim, int patch_spacedim>
1161template <int dim2, int spacedim2>
1162void
1165 const Point<patch_spacedim> &shift)
1166{
1167 const std::vector<Patch> &source_patches = source.get_patches();
1168 Assert((patches.size() != 0) && (source_patches.size() != 0),
1169 ExcMessage("When calling this function, both the current "
1170 "object and the one being merged need to have a "
1171 "nonzero number of patches associated with it. "
1172 "Either you called this function on objects that "
1173 "are empty, or you may have forgotten to call "
1174 "the 'build_patches()' function."));
1175 // Check equality of component names
1176 Assert(get_dataset_names() == source.get_dataset_names(),
1178
1179 // Make sure patches are compatible. Ideally, we would check that all input
1180 // patches from both collections are all compatible, but we'll be content
1181 // with checking that just the first ones from both sources are.
1182 //
1183 // We check compatibility by testing that both sets of patches result
1184 // from the same number of subdivisions, and that they have the same
1185 // number of source vectors (they really should, since we already checked
1186 // that there are the same number of source components above, but you
1187 // never know). This implies that the data should have the same number of
1188 // columns. They should really have the same number of rows as well,
1189 // but depending on whether a patch has points included or not, the
1190 // number of rows may or may not include coordinates for the points,
1191 // and the comparison has to account for that because in each source
1192 // stream, the patches may include some that have points included.
1193 Assert(patches[0].n_subdivisions == source_patches[0].n_subdivisions,
1195 Assert(patches[0].data.n_cols() == source_patches[0].data.n_cols(),
1197 Assert((patches[0].data.n_rows() +
1198 (patches[0].points_are_available ? 0 : patch_spacedim)) ==
1199 (source_patches[0].data.n_rows() +
1200 (source_patches[0].points_are_available ? 0 : patch_spacedim)),
1202
1203 // check equality of the vector data
1204 // specifications
1205 Assert(get_nonscalar_data_ranges().size() ==
1206 source.get_nonscalar_data_ranges().size(),
1207 ExcMessage("Both sources need to declare the same components "
1208 "as vectors."));
1209 for (unsigned int i = 0; i < get_nonscalar_data_ranges().size(); ++i)
1210 {
1211 Assert(std::get<0>(get_nonscalar_data_ranges()[i]) ==
1212 std::get<0>(source.get_nonscalar_data_ranges()[i]),
1213 ExcMessage("Both sources need to declare the same components "
1214 "as vectors."));
1215 Assert(std::get<1>(get_nonscalar_data_ranges()[i]) ==
1216 std::get<1>(source.get_nonscalar_data_ranges()[i]),
1217 ExcMessage("Both sources need to declare the same components "
1218 "as vectors."));
1219 Assert(std::get<2>(get_nonscalar_data_ranges()[i]) ==
1220 std::get<2>(source.get_nonscalar_data_ranges()[i]),
1221 ExcMessage("Both sources need to declare the same components "
1222 "as vectors."));
1223 }
1224
1225 // merge patches. store old number
1226 // of elements, since we need to
1227 // adjust patch numbers, etc
1228 // afterwards
1229 const unsigned int old_n_patches = patches.size();
1230 patches.insert(patches.end(), source_patches.begin(), source_patches.end());
1231
1232 // perform shift, if so desired
1233 if (shift != Point<patch_spacedim>())
1234 for (unsigned int i = old_n_patches; i < patches.size(); ++i)
1235 for (const unsigned int v : GeometryInfo<patch_dim>::vertex_indices())
1236 patches[i].vertices[v] += shift;
1237
1238 // adjust patch numbers
1239 for (unsigned int i = old_n_patches; i < patches.size(); ++i)
1240 patches[i].patch_index += old_n_patches;
1241
1242 // adjust patch neighbors
1243 for (unsigned int i = old_n_patches; i < patches.size(); ++i)
1244 for (const unsigned int n : GeometryInfo<patch_dim>::face_indices())
1245 if (patches[i].neighbors[n] != Patch::no_neighbor)
1246 patches[i].neighbors[n] += old_n_patches;
1247}
1248
1249
1251
1252#endif
void add_data_vector(const VectorType &data, const std::string &name, const DataVectorType type=type_automatic, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation={})
std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > get_fes() const
virtual std::vector< std::string > get_dataset_names() const override
void clear_data_vectors()
void add_data_vector(const DoFHandler< dim, spacedim > &dof_handler, const VectorType &data, const std::string &name, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation={})
std::vector< std::shared_ptr< internal::DataOutImplementation::DataEntryBase< dim, spacedim > > > cell_data
std::vector< Patch > patches
void add_data_vector(const DoFHandler< dim, spacedim > &dof_handler, const VectorType &data, const DataPostprocessor< spacedim > &data_postprocessor)
void merge_patches(const DataOut_DoFData< dim2, patch_dim, spacedim2, patch_spacedim > &source, const Point< patch_spacedim > &shift=Point< patch_spacedim >())
void add_data_vector_internal(const DoFHandler< dim, spacedim > *dof_handler, const VectorType &data, const std::vector< std::string > &names, const DataVectorType type, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation, const bool deduce_output_names)
void add_data_vector(const VectorType &data, const DataPostprocessor< spacedim > &data_postprocessor)
std::vector< std::shared_ptr< internal::DataOutImplementation::DataEntryBase< dim, spacedim > > > dof_data
virtual void clear()
virtual std::vector< std::tuple< unsigned int, unsigned int, std::string, DataComponentInterpretation::DataComponentInterpretation > > get_nonscalar_data_ranges() const override
virtual const std::vector< Patch > & get_patches() const override
void attach_dof_handler(const DoFHandler< dim, spacedim > &)
ObserverPointer< const Triangulation< dim, spacedim > > triangulation
void add_data_vector(const DoFHandler< dim, spacedim > &dof_handler, const VectorType &data, const std::vector< std::string > &names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation={})
std::size_t memory_consumption() const
void add_mg_data_vector(const DoFHandler< dim, spacedim > &dof_handler, const MGLevelObject< VectorType > &data, const std::vector< std::string > &names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation=std::vector< DataComponentInterpretation::DataComponentInterpretation >())
void clear_input_data_references()
typename Triangulation< dim, spacedim >::cell_iterator cell_iterator
void remove_ignored_components()
void add_mg_data_vector(const DoFHandler< dim, spacedim > &dof_handler, const MGLevelObject< VectorType > &data, const std::string &name)
ObserverPointer< const DoFHandler< dim, spacedim > > dofs
void attach_triangulation(const Triangulation< dim, spacedim > &)
virtual ~DataOut_DoFData() override
void add_data_vector(const VectorType &data, const std::vector< std::string > &names, const DataVectorType type=type_automatic, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation={})
Abstract base class for mapping classes.
Definition mapping.h:318
Definition point.h:111
const std::vector< DataComponentInterpretation::DataComponentInterpretation > data_component_interpretation
ObserverPointer< const DoFHandler< dim, spacedim > > dof_handler
virtual void get_function_gradients(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector< std::vector< Tensor< 1, spacedim > > > &patch_gradients_system) const =0
virtual void get_function_gradients(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector< Tensor< 1, spacedim > > &patch_gradients) const =0
virtual void get_function_values(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector< double > &patch_values) const =0
virtual double get_cell_data_value(const unsigned int cell_number, const ComponentExtractor extract_component) const =0
virtual void get_function_hessians(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector< Tensor< 2, spacedim > > &patch_hessians) const =0
virtual std::size_t memory_consumption() const =0
virtual void get_function_hessians(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector< std::vector< Tensor< 2, spacedim > > > &patch_hessians_system) const =0
DataEntryBase(const DoFHandler< dim, spacedim > *dofs, const std::vector< std::string > &names, const std::vector< DataComponentInterpretation::DataComponentInterpretation > &data_component_interpretation)
virtual void get_function_values(const FEValuesBase< dim, spacedim > &fe_patch_values, const ComponentExtractor extract_component, std::vector<::Vector< double > > &patch_values_system) const =0
DataEntryBase(const DoFHandler< dim, spacedim > *dofs, const DataPostprocessor< spacedim > *data_postprocessor)
ObserverPointer< const ::DataPostprocessor< spacedim > > postprocessor
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
static ::ExceptionBase & ExcIncompatiblePatchLists()
static ::ExceptionBase & ExcInvalidNumberOfSubdivisions(int arg1)
static ::ExceptionBase & ExcInvalidCharacter(std::string arg1, std::size_t arg2)
static ::ExceptionBase & ExcInvalidNumberOfNames(int arg1, int arg2)
static ::ExceptionBase & ExcIncompatibleDatasetNames()
#define Assert(cond, exc)
static ::ExceptionBase & ExcNoDoFHandlerSelected()
static ::ExceptionBase & ExcOldDataStillPresent()
static ::ExceptionBase & ExcInvalidTensorDeclaration(int arg1, std::string arg2)
#define DeclException2(Exception2, type1, type2, outsequence)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcInvalidVectorDeclaration(int arg1, std::string arg2)
#define DeclException3(Exception3, type1, type2, type3, outsequence)
static ::ExceptionBase & ExcNoTriangulationSelected()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcInvalidVectorSize(int arg1, int arg2, int arg3)
static ::ExceptionBase & ExcMessage(std::string arg1)
UpdateFlags
std::vector< index_type > data
Definition mpi.cc:734
std::size_t size
Definition mpi.cc:733
constexpr unsigned int invalid_unsigned_int
Definition types.h:228
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > face_indices()
static std_cxx20::ranges::iota_view< unsigned int, unsigned int > vertex_indices()
const FEValuesBase< dim, spacedim > & get_present_fe_values(const unsigned int dataset) const
std::vector< std::shared_ptr<::hp::FEFaceValues< dim, spacedim > > > x_fe_face_values
ParallelDataBase(const unsigned int n_datasets, const unsigned int n_subdivisions, const std::vector< unsigned int > &n_postprocessor_outputs, const ::hp::MappingCollection< dim, spacedim > &mapping, const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > &finite_elements, const UpdateFlags update_flags, const bool use_face_values)
DataPostprocessorInputs::Scalar< spacedim > patch_values_scalar
ParallelDataBase(const unsigned int n_datasets, const unsigned int n_subdivisions, const std::vector< unsigned int > &n_postprocessor_outputs, const Mapping< dim, spacedim > &mapping, const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > &finite_elements, const UpdateFlags update_flags, const bool use_face_values)
const std::vector< std::shared_ptr<::hp::FECollection< dim, spacedim > > > finite_elements
std::vector< std::vector<::Vector< double > > > postprocessed_values
const ::hp::MappingCollection< dim, spacedim > mapping_collection
std::vector< std::shared_ptr<::hp::FEValues< dim, spacedim > > > x_fe_values
DataPostprocessorInputs::Vector< spacedim > patch_values_system
ParallelDataBase(const ParallelDataBase &data)
void reinit_all_fe_values(std::vector< std::shared_ptr< DataEntryBase< dim, spacedim > > > &dof_data, const typename ::Triangulation< dim, spacedim >::cell_iterator &cell, const unsigned int face=numbers::invalid_unsigned_int)
void resize_system_vectors(const unsigned int n_components)