From e01999201aa95f3ae56af765e79652dc0c4bcbe2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 18 May 2020 17:50:07 -0600 Subject: [PATCH] Move a piece of code to a better location. --- examples/step-70/step-70.cc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/step-70/step-70.cc b/examples/step-70/step-70.cc index 9ea88cc6e0..0c524d61d7 100644 --- a/examples/step-70/step-70.cc +++ b/examples/step-70/step-70.cc @@ -1098,13 +1098,6 @@ namespace Step70 std_cxx14::make_unique>(par.velocity_degree + 1); solid_quadrature_formula = std_cxx14::make_unique>(par.velocity_degree + 1); - - // Save the current parameter file in the output directory, for - // reproducibility - par.prm.print_parameters(par.output_directory + "/" + "parameters_" + - std::to_string(dim) + std::to_string(spacedim) + - ".prm", - ParameterHandler::Short); } @@ -1616,8 +1609,13 @@ namespace Step70 } - // This function orchestrates the entire simulation. It is very similar - // to the other time dependent tutorial programs. + // @sect4{The "run" function} + + // This function now orchestrates the entire simulation. It is very similar + // to the other time dependent tutorial programs -- take step-26 as an example. At the beginning, we + // output some status information and also + // save all current parameters to a file in the output directory, for + // reproducibility. template void StokesImmersedProblem::run() { @@ -1630,6 +1628,10 @@ namespace Step70 << Utilities::dim_string(dim, spacedim) << "> using Trilinos." << std::endl; #endif + par.prm.print_parameters(par.output_directory + "/" + "parameters_" + + std::to_string(dim) + std::to_string(spacedim) + + ".prm", + ParameterHandler::Short); ComponentMask velocity_mask(spacedim + 1, true); velocity_mask.set(spacedim, false); -- 2.39.5