}
std::cout << " boundary indicators: ";
- for (const std::pair<types::boundary_id, unsigned int> &pair : boundary_count)
+ for (const std::pair<const types::boundary_id, unsigned int> &pair : boundary_count)
{
std::cout << pair.first << "(" << pair.second << " times) ";
}
{
// need to copy the sample since it is marked const
ScratchData scratch_data = sample_scratch_data;
- CopyData copy_data = sample_copy_data;
+ CopyData copy_data = sample_copy_data; // NOLINT
for (Iterator i=begin; i!=end; ++i)
{
{
// need to copy the sample since it is marked const
ScratchData scratch_data = sample_scratch_data;
- CopyData copy_data = sample_copy_data;
+ CopyData copy_data = sample_copy_data; // NOLINT
for (unsigned int color=0; color<colored_iterators.size(); ++color)
for (typename std::vector<Iterator>::const_iterator p = colored_iterators[color].begin();
// this is a workaround since the constructor for FESystem
// only accepts raw pointers.
std::vector<const FiniteElement<dim,spacedim> *> raw_base_fes;
+ raw_base_fes.reserve(base_fes.size());
for (const auto &base_fe: base_fes)
raw_base_fes.push_back(base_fe.get());
{
// avoid overwriting source
// by destination matrix:
- const FullMatrix<number2> M2 = M;
+ const FullMatrix<number2> M2 = M; // NOLINT
invert(M2);
}
else
{
// avoid overwriting source
// by destination matrix:
- const FullMatrix<number2> A2 = A;
+ const FullMatrix<number2> A2 = A; // NOLINT
cholesky(A2);
}
else
// now that we have a q_collection object with all the right quadrature
// points, create an hp::FEFaceValues object that we can use to evaluate
// the boundary values at
- const dealii::hp::MappingCollection<dim,spacedim> mapping_collection (mapping);
+ const dealii::hp::MappingCollection<dim,spacedim> mapping_collection (mapping); // NOLINT
dealii::hp::FEFaceValues<dim,spacedim> x_fe_values (mapping_collection,
finite_elements,
q_collection,
{
Assert (points.size() > 0,
(typename FiniteElement<dim, spacedim>::ExcFEHasNoSupportPoints ()));
- const Quadrature<dim> support_quadrature(points);
- this->unit_support_points = support_quadrature.get_points();
+ this->unit_support_points = Quadrature<dim>(points).get_points();
}
this->poly_space.get_numbering_inverse();
Quadrature<1> support_1d(points);
- const Quadrature<dim> support_quadrature(support_1d);
+ const Quadrature<dim> support_quadrature(support_1d); // NOLINT
this->unit_support_points.resize(support_quadrature.size());
- for (unsigned int k=0; k<support_quadrature.size(); k++)
+ for (unsigned int k=0; k<support_quadrature.size(); ++k)
this->unit_support_points[index_map_inverse[k]] = support_quadrature.point(k);
}
std::vector<unsigned int> face_index_map =
internal::FE_Q_Base::face_lexicographic_to_hierarchic_numbering<dim>(q_degree);
Quadrature<1> support_1d(points);
- const Quadrature<codim> support_quadrature(support_1d);
+ const Quadrature<codim> support_quadrature(support_1d); // NOLINT
this->unit_face_support_points.resize(support_quadrature.size());
- for (unsigned int k=0; k<support_quadrature.size(); k++)
+ for (unsigned int k=0; k<support_quadrature.size(); ++k)
this->unit_face_support_points[face_index_map[k]] = support_quadrature.point(k);
}
const std::vector<CellData<dim> > &cells,
const SubCellData &subcelldata)
{
- std::vector<CellData<dim> > reordered_cells (cells);
- SubCellData reordered_subcelldata (subcelldata);
+ std::vector<CellData<dim> > reordered_cells (cells); // NOLINT
+ SubCellData reordered_subcelldata (subcelldata); // NOLINT
// in-place reordering of data
reorder_compatibility (reordered_cells, reordered_subcelldata);