@@ -130,7 +130,7 @@ ErrorIndicator DrivenSolver::SweepUniform(SpaceOperator &space_op, int n_step, i
130130 // Switch paraview subfolders: one for each excitation, if nr_excitations > 1.
131131 post_op.InitializeParaviewDataCollection (excitation_idx);
132132
133- // Frequency loop
133+ // Frequency loop.
134134 double omega = omega0;
135135 for (int step = step0; step < n_step; step++, omega += delta_omega)
136136 {
@@ -139,7 +139,7 @@ ErrorIndicator DrivenSolver::SweepUniform(SpaceOperator &space_op, int n_step, i
139139 iodata.units .Dimensionalize <Units::ValueType::FREQUENCY>(omega),
140140 Timer::Duration (Timer::Now () - t0).count ());
141141
142- // Assemble matrices: skip if already done (first excitation & first freq point)
142+ // Assemble matrices: skip if already done (first excitation & first freq point).
143143 if (!first_iter_set)
144144 {
145145 // Update frequency-dependent excitation and operators.
@@ -152,7 +152,7 @@ ErrorIndicator DrivenSolver::SweepUniform(SpaceOperator &space_op, int n_step, i
152152 ksp.SetOperators (*A, *P);
153153 }
154154 first_iter_set = false ;
155- // Solve linear system
155+ // Solve linear system.
156156 space_op.GetExcitationVector (excitation_idx, omega, RHS);
157157 Mpi::Print (" \n " );
158158 ksp.Mult (RHS, E);
@@ -181,7 +181,7 @@ ErrorIndicator DrivenSolver::SweepUniform(SpaceOperator &space_op, int n_step, i
181181 Mpi::Print (" Updating solution error estimates\n " );
182182 estimator.AddErrorIndicator (E, B, total_domain_energy, indicator);
183183 }
184- // Final postprocessing & printing
184+ // Final postprocessing & printing.
185185 BlockTimer bt0 (Timer::POSTPRO);
186186 SaveMetadata (ksp);
187187 }
@@ -206,7 +206,7 @@ ErrorIndicator DrivenSolver::SweepAdaptive(SpaceOperator &space_op, int n_step,
206206 {
207207 max_size_per_excitation = 20 ; // Default value
208208 }
209- // Maximum size — no more than nr steps needed
209+ // Maximum size — no more than nr steps needed.
210210 max_size_per_excitation = std::min (max_size_per_excitation, (n_step - step0));
211211
212212 // Allocate negative curl matrix for postprocessing the B-field and vectors for the
@@ -278,13 +278,13 @@ ErrorIndicator DrivenSolver::SweepAdaptive(SpaceOperator &space_op, int n_step,
278278 // B = -1/(iω) ∇ x E + 1/ω kp x E
279279 floquet_corr->AddMult (E, B, 1.0 / omega);
280280 }
281- // Debug option to print prom samples fields to paraview file
281+ // Debug option to print prom samples fields to paraview file.
282282 std::optional<std::pair<int , double >> debug_print_paraview_opt = {};
283283 if constexpr (debug_prom_paraview)
284284 {
285285 // Paraview times are printed as excitation * padding + freq with padding gives enough
286286 // space for f_max + 1, e.g. if f_max = 102 GHz, then we get time n0fff where n is the
287- // excitation index and fff is the frequency
287+ // excitation index and fff is the frequency.
288288 double excitation_padding =
289289 std::pow (10.0 , 3.0 + static_cast <int >(std::log10 (iodata.solver .driven .max_f )));
290290 auto freq = iodata.units .Dimensionalize <Units::ValueType::FREQUENCY>(omega);
@@ -299,7 +299,7 @@ ErrorIndicator DrivenSolver::SweepAdaptive(SpaceOperator &space_op, int n_step,
299299 estimator.AddErrorIndicator (E, B, total_domain_energy, indicator);
300300 };
301301
302- // Loop excitations to add to PROM
302+ // Loop excitations to add to PROM.
303303 auto print_counter_excitation_prom = 0 ; // 1 based indexing; will increment at start
304304 for (const auto &[excitation_idx, spec] : excitation_helper.excitations )
305305 {
@@ -386,7 +386,7 @@ ErrorIndicator DrivenSolver::SweepAdaptive(SpaceOperator &space_op, int n_step,
386386 // Switch paraview subfolders: one for each excitation, if nr_excitations > 1.
387387 post_op.InitializeParaviewDataCollection (excitation_idx);
388388
389- // Frequency loop
389+ // Frequency loop.
390390 double omega = omega0;
391391 for (int step = step0; step < n_step; step++, omega += delta_omega)
392392 {
@@ -414,7 +414,7 @@ ErrorIndicator DrivenSolver::SweepAdaptive(SpaceOperator &space_op, int n_step,
414414 }
415415 post_op.MeasureAndPrintAll (excitation_idx, step, E, B, omega);
416416 }
417- // Final postprocessing & printing: no change to indicator since prom
417+ // Final postprocessing & printing: no change to indicator since these are in PROM.
418418 BlockTimer bt0 (Timer::POSTPRO);
419419 SaveMetadata (prom_op.GetLinearSolver ());
420420 }
0 commit comments