Skip to content
Snippets Groups Projects
Commit 41ebf0e8 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Constness

parent 545339b4
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,8 @@ int main(int argc, char *argv[]) {
size_t const levels = refinements + 1;
auto const verbose = parset.get<bool>("verbose");
Solver::VerbosityMode verbosity = verbose ? Solver::FULL : Solver::QUIET;
Solver::VerbosityMode const verbosity =
verbose ? Solver::FULL : Solver::QUIET;
// {{{ Set up grid
typedef Dune::YaspGrid<dim> GridType;
......@@ -320,7 +321,7 @@ int main(int argc, char *argv[]) {
VectorType b3;
VectorType b4;
auto nodalIntegrals =
auto const nodalIntegrals =
assemble_frictional<GridType, GridView, SmallVector, P1Basis>(
leafView, p1Basis, frictionalNodes);
// {{{ Set up TNNMG solver
......@@ -365,7 +366,7 @@ int main(int argc, char *argv[]) {
timer.reset();
auto const timesteps = parset.get<size_t>("timesteps");
double h = 1.0 / timesteps;
double const h = 1.0 / timesteps;
for (size_t run = 1; run <= timesteps; ++run) {
if (parset.get<bool>("printProgress")) {
std::cout << ".";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment