template <int dim, int spacedim>
DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
void CellAttachedDataSerializer<dim, spacedim>::save(
- [[maybe_unused]] const unsigned int global_first_cell,
- [[maybe_unused]] const unsigned int global_num_cells,
- const std::string &file_basename,
- [[maybe_unused]] const MPI_Comm &mpi_communicator) const
+ const unsigned int global_first_cell,
+ const unsigned int global_num_cells,
+ const std::string &file_basename,
+ const MPI_Comm &mpi_communicator) const
{
Assert(sizes_fixed_cumulative.size() > 0,
ExcMessage("No data has been packed!"));
else
#endif
{
+ (void)global_first_cell;
+ (void)global_num_cells;
+ (void)mpi_communicator;
+
//
// ---------- Fixed size data ----------
//
template <int dim, int spacedim>
DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
void CellAttachedDataSerializer<dim, spacedim>::load(
- [[maybe_unused]] const unsigned int global_first_cell,
- [[maybe_unused]] const unsigned int global_num_cells,
- const unsigned int local_num_cells,
- const std::string &file_basename,
- const unsigned int n_attached_deserialize_fixed,
- const unsigned int n_attached_deserialize_variable,
- const MPI_Comm &mpi_communicator)
+ const unsigned int global_first_cell,
+ const unsigned int global_num_cells,
+ const unsigned int local_num_cells,
+ const std::string &file_basename,
+ const unsigned int n_attached_deserialize_fixed,
+ const unsigned int n_attached_deserialize_variable,
+ const MPI_Comm &mpi_communicator)
{
Assert(dest_data_fixed.empty(),
ExcMessage("Previously loaded data has not been released yet!"));
#endif
{
(void)mpi_communicator;
+ (void)global_first_cell;
+ (void)global_num_cells;
//
// ---------- Fixed size data ----------
return a.vertices < b.vertices;
});
- unsigned int counter = 0;
+ [[maybe_unused]] unsigned int counter = 0;
std::vector<unsigned int> key;
key.reserve(GeometryInfo<structdim>::vertices_per_cell);
if (subcell_object->boundary_id !=
numbers::internal_face_boundary_id)
{
- [[mabe_unused]]vertex_locations;
AssertThrow(
boundary_id != numbers::internal_face_boundary_id,
ExcMessage(
// make sure that all subcelldata entries have been processed
// TODO: this is not guaranteed, why?
// AssertDimension(counter, boundary_objects_in.size());
- [[mabe_unused]]counter;
}
triangulation.vertices[next_unused_vertex] = line->center(true);
bool pair_found = false;
- [[mabe_unused]]pair_found;
for (; next_unused_line != endl; ++next_unused_line)
if (!next_unused_line->used() &&
!(++next_unused_line)->used())
// two child lines. To this end, find a pair of
// unused lines
bool pair_found = false;
- [[mabe_unused]]pair_found;
for (; next_unused_line != endl; ++next_unused_line)
if (!next_unused_line->used() &&
!(++next_unused_line)->used())
}
for (const unsigned int line : quad->line_indices())
- {
- AssertIsNotUsed(new_lines[line]);
- [[mabe_unused]]line;
- }
+ AssertIsNotUsed(new_lines[line]);
// 2) create new quads (properties are set below). Both triangles
// and quads are divided in four.
quad->set_refinement_case(RefinementCase<2>::cut_xy);
for (const auto &quad : new_quads)
- {
- AssertIsNotUsed(quad);
- [[mabe_unused]]quad;
- }
+ AssertIsNotUsed(quad);
// 3) set vertex indices and set new vertex
template <int dim, int spacedim>
static void
delete_children(
- Triangulation<dim, spacedim> &triangulation,
- typename Triangulation<dim, spacedim>::cell_iterator &cell,
- std::vector<unsigned int> &line_cell_count,
- std::vector<unsigned int> &quad_cell_count)
+ Triangulation<dim, spacedim> & /*triangulation*/,
+ typename Triangulation<dim, spacedim>::cell_iterator & /*cell*/,
+ std::vector<unsigned int> & /*line_cell_count*/,
+ std::vector<unsigned int> & /*quad_cell_count*/)
{
AssertThrow(false, ExcNotImplemented());
- [[mabe_unused]]triangulation;
- [[mabe_unused]]cell;
- [[mabe_unused]]line_cell_count;
- [[mabe_unused]]quad_cell_count;
}
template <int dim, int spacedim>
template <int dim, int spacedim>
static void
prevent_distorted_boundary_cells(
- Triangulation<dim, spacedim> &triangulation)
+ Triangulation<dim, spacedim> & /*triangulation*/)
{
// nothing to do since anisotropy is not supported
- [[mabe_unused]]triangulation;
}
template <int dim, int spacedim>
}
}
- [[mabe_unused]]boundary_found;
Assert(boundary_found, ExcBoundaryIdNotFound(b_id));
}
// CellStatus::cell_will_persist.
for (const auto &cell_rel : this->local_cell_relations)
{
- [[mabe_unused]]cell_rel;
Assert((cell_rel.second == // cell_status
::dealii::CellStatus::cell_will_persist),
ExcInternalError());
additional_data.mapping_update_flags_inner_faces =
update_values | update_gradients | update_hessians;
- [[maybe_unused]]MatrixFree<dim, double, VectorizedArrayType> matrix_free;
+ MatrixFree<dim, double, VectorizedArrayType> matrix_free;
matrix_free.reinit(mapping, dof_handler, constraints, quad, additional_data);
if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
deallog << "Working with " << fe.get_name() << " and "
<< dof_handler.n_dofs() << " dofs" << std::endl;
- LinearAlgebra::distributed::Vector<double> dst2;
- [[maybe_unused]]LinearAlgebra::distributed::Vector<double> src, dst;
+ LinearAlgebra::distributed::Vector<double> src, dst, dst2;
matrix_free.initialize_dof_vector(src);
for (auto &v : src)
v = random_value<double>();
matrix_free.template loop<LinearAlgebra::distributed::Vector<double>,
LinearAlgebra::distributed::Vector<double>>(
[&](
- const auto &matrix_free, auto &dst, const auto &src, [[maybe_unused]]const auto &range) {
+ const auto &matrix_free, auto &dst, const auto &src, const auto &range) {
FEEvaluation<dim, -1, 0, 1, double, VectorizedArrayType> fe_eval(
matrix_free);
for (unsigned int cell = range.first; cell < range.second; ++cell)
}
}
},
- [&](
- const auto &matrix_free, auto &dst, const auto &src, const auto &range) {
- },
- [&](
- const auto &matrix_free, auto &dst, const auto &src, const auto &range) {
- },
+ [&](const auto & /*matrix_free*/,
+ auto & /*dst*/,
+ const auto & /*src*/,
+ const auto & /*range*/) {},
+ [&](const auto & /*matrix_free*/,
+ auto & /*dst*/,
+ const auto & /*src*/,
+ const auto & /*range*/) {},
dst,
src,
true);