unsigned int
compute_n_q_points(const unsigned int n_q_points_unvectorized);
+ /**
+ * Clears fields to make the object reusable.
+ */
+ void
+ clear();
+
/**
* Resize the unit_point data field.
*/
+ template <int dim, int spacedim, typename Number>
+ void
+ MappingInfo<dim, spacedim, Number>::clear()
+ {
+ n_q_points_unvectorized.clear();
+ unit_points_index.clear();
+ data_index_offsets.clear();
+ }
+
+
+
template <int dim, int spacedim, typename Number>
void
MappingInfo<dim, spacedim, Number>::reinit(
const std::vector<Quadrature<dim>> &quadrature_vector,
const unsigned int n_unfiltered_cells)
{
+ clear();
+
do_cell_index_compression =
n_unfiltered_cells != numbers::invalid_unsigned_int;
const std::vector<ImmersedSurfaceQuadrature<dim>> &quadrature_vector,
const unsigned int n_unfiltered_cells)
{
+ clear();
+
Assert(
additional_data.use_global_weights == false,
ExcMessage(
const std::vector<std::vector<Quadrature<dim - 1>>> &quadrature_vector,
const unsigned int n_unfiltered_cells)
{
+ clear();
+
do_cell_index_compression =
n_unfiltered_cells != numbers::invalid_unsigned_int;
FE_Q<dim> fe(degree);
MappingQ<dim> mapping(degree);
+ NonMatching::MappingInfo<dim>::AdditionalData additional_data;
+ additional_data.use_global_weights = true;
+ NonMatching::MappingInfo<dim> mapping_info(mapping,
+ update_JxW_values,
+ additional_data);
deallog << "Check JxW faces..." << std::endl;
{
- NonMatching::MappingInfo<dim>::AdditionalData additional_data;
- additional_data.use_global_weights = true;
- NonMatching::MappingInfo<dim> mapping_info(mapping,
- update_JxW_values,
- additional_data);
-
// 1) build vector of quadratures
std::vector<std::vector<Quadrature<dim - 1>>> quad_vec;
// prescribe JxW (there is no meaning in the actual values, they just have
deallog << "\n\nCheck JxW cells..." << std::endl;
{
- NonMatching::MappingInfo<dim>::AdditionalData additional_data;
- additional_data.use_global_weights = true;
- NonMatching::MappingInfo<dim> mapping_info(mapping,
- update_JxW_values,
- additional_data);
-
-
// 1) build vector of quadratures
std::vector<Quadrature<dim>> quad_vec;
// prescribe JxW (there is no meaning in the actual values, they just have