for (unsigned int i = 0; i < dim; i++)
c[i] = c[i] / delta;
- const unsigned int lid = norm_point_to_lex(c);
+ const auto lid = static_cast<unsigned int>(norm_point_to_lex(c));
for (unsigned int i = lid * n_points_cell;
i < (lid + 1) * n_points_cell;
// test a non-empty rectangular table
TransposeTable<double> table(3, 4);
std::iota(table.begin(), table.end(), 1.0);
- for (const auto entry : table)
+ for (const auto &entry : table)
{
deallog << entry.row() << ", " << entry.column() << ", " << entry.value()
<< std::endl;
{
// find matching location
unsigned int p = 0;
- for (const auto c : coords)
+ for (const auto &c : coords)
{
Point<dim> point;
for (unsigned int d = 0; d < dim; ++d)
{
// find matching location
unsigned int p = 0;
- for (const auto c : coords)
+ for (const auto &c : coords)
{
Point<dim> point;
for (unsigned int d = 0; d < dim; ++d)
for (TransferRep::value_type::const_iterator it = m.begin();
it != m.end();
++it)
- local_sum += it->second;
+ local_sum += static_cast<unsigned int>(it->second);
}
unsigned global_sum = Utilities::MPI::sum(local_sum, MPI_COMM_WORLD);
// we used to abort in the
// following call, due to a
// wrong Assert condition:
- cell->neighbor_child_on_subface(face_no, subface_no);
+ auto dummy =
+ cell->neighbor_child_on_subface(face_no, subface_no);
}
}
}
// Create two pointer index clashes here
try
{
- tr.begin()->user_index();
+ auto dummy = tr.begin()->user_index();
}
catch (...)
{}
- tr.begin()->user_pointer();
+ auto dummy = tr.begin()->user_pointer();
// Check if save and load work
// Create two pointer index clashes here
try
{
- tr.begin()->user_pointer();
+ auto dummy = tr.begin()->user_pointer();
}
catch (ExceptionBase &e)
{
deallog << e.get_exc_name() << std::endl;
}
- tr.begin()->user_index();
+ auto dummy = tr.begin()->user_index();
for (const auto cell : cells)
deallog << "cell: " << cell.to_string() << std::endl;
- for (const auto face : faces)
+ for (const auto &face : faces)
deallog << "face: " << face.first.to_string() << " "
<< face.second.to_string() << std::endl;
data.mapping_update_flags_boundary_faces =
(update_gradients | update_JxW_values);
- mf_data.reinit(
- mapping,
- std::vector<const DoFHandler<dim> *>({{&dof}}),
- std::vector<const AffineConstraints<double> *>({{&constraints}}),
- std::vector<Quadrature<1>>({{QGauss<1>(std::max(degree / 2, 1U)),
- QGauss<1>(degree + 1),
- QGauss<1>(3 * degree / 2)}}),
- data);
+ mf_data.reinit(mapping,
+ std::vector<const DoFHandler<dim> *>{&dof},
+ std::vector<const AffineConstraints<double> *>{&constraints},
+ std::vector<Quadrature<1>>{
+ {QGauss<1>(std::max(degree / 2, 1U)),
+ QGauss<1>(degree + 1),
+ QGauss<1>(3 * degree / 2)}},
+ data);
deallog << std::setw(5) << degree;
for (unsigned int index = 0; index < 3; ++index)
Utilities::MPI::Partitioner part(owned, ghosted, MPI_COMM_WORLD);
deallog << "ghost targets: ";
- for (const auto p : part.ghost_targets())
+ for (const auto &p : part.ghost_targets())
deallog << "p" << p.first << " n_indices=" << p.second << " ";
deallog << std::endl;
deallog << "import targets: ";
- for (const auto p : part.import_targets())
+ for (const auto &p : part.import_targets())
deallog << "p" << p.first << " n_indices=" << p.second << " ";
deallog << std::endl;
deallog << "import indices: ";
- for (const auto p : part.import_indices())
+ for (const auto &p : part.import_indices())
deallog << "[" << p.first << " " << p.second << ") ";
deallog << std::endl;
}
unsigned int start_comp,
Vector<double> & vec)
{
- double ret = true;
// Initialize
QGaussLobatto<dim - 1> quadrature(3);
FEFaceValues<dim> fe_values(mapping,
num_cells++;
}
// Test if ok
+ bool ret = true;
for (unsigned int bc = 0; bc < 6; ++bc)
{
for (unsigned int basis = 0; basis < dof_handler.n_dofs(); basis++)