@@ -54,10 +54,10 @@ TEST(NumLibTimeStepping, testEvolutionaryPIDcontroller)
5454 int const number_iterations = 0 ;
5555 // 1st step
5656
57- auto [step_accepted, timestepper_dt] = PIDStepper->next (
57+ auto const timestepper_dt = PIDStepper->next (
5858 solution_error, number_iterations, previous_timestep, current_timestep);
5959
60- ASSERT_TRUE (step_accepted );
60+ ASSERT_TRUE (current_timestep. isAccepted () );
6161 NumLib::updateTimeSteps (timestepper_dt, previous_timestep,
6262 current_timestep);
6363
@@ -73,9 +73,9 @@ TEST(NumLibTimeStepping, testEvolutionaryPIDcontroller)
7373
7474 // e_n_minus1 is filled.
7575 solution_error = 1.0e-4 ;
76- auto [step_accepted1, timestepper_dt1] = PIDStepper->next (
77- solution_error, number_iterations, previous_timestep, current_timestep);
78- ASSERT_TRUE (step_accepted1 );
76+ PIDStepper->next (solution_error, number_iterations, previous_timestep,
77+ current_timestep);
78+ ASSERT_TRUE (current_timestep. isAccepted () );
7979 NumLib::updateTimeSteps (timestepper_dt, previous_timestep,
8080 current_timestep);
8181 // / ts = PIDStepper->getTimeStep();
@@ -89,9 +89,9 @@ TEST(NumLibTimeStepping, testEvolutionaryPIDcontroller)
8989
9090 // e_n_minus2 is filled.
9191 solution_error = 0.5e-3 ;
92- auto [step_accepted2, timestepper_dt2] = PIDStepper->next (
92+ auto timestepper_dt2 = PIDStepper->next (
9393 solution_error, number_iterations, previous_timestep, current_timestep);
94- ASSERT_TRUE (step_accepted2 );
94+ ASSERT_TRUE (current_timestep. isAccepted () );
9595 NumLib::updateTimeSteps (timestepper_dt2, previous_timestep,
9696 current_timestep);
9797 // / ts = PIDStepper->getTimeStep();
@@ -104,9 +104,9 @@ TEST(NumLibTimeStepping, testEvolutionaryPIDcontroller)
104104 // If error > solution_error, step is rejected and new step size is
105105 // estimated.
106106 solution_error = 0.01 ;
107- auto [step_accepted3, timestepper_dt3] = PIDStepper->next (
108- solution_error, number_iterations, previous_timestep, current_timestep);
109- ASSERT_TRUE (!step_accepted3 );
107+ PIDStepper->next (solution_error, number_iterations, previous_timestep,
108+ current_timestep);
109+ ASSERT_TRUE (!current_timestep. isAccepted () );
110110 // / ts = PIDStepper->getTimeStep();
111111 h_new = current_timestep.dt ();
112112 // No change in current_timestep.timeStepNumber
@@ -120,9 +120,9 @@ TEST(NumLibTimeStepping, testEvolutionaryPIDcontroller)
120120
121121 // With e_n, e_n_minus1, e_n_minus2
122122 solution_error = 0.4e-3 ;
123- auto [step_accepted4, timestepper_dt4] = PIDStepper->next (
123+ auto timestepper_dt4 = PIDStepper->next (
124124 solution_error, number_iterations, previous_timestep, current_timestep);
125- ASSERT_TRUE (step_accepted4 );
125+ ASSERT_TRUE (current_timestep. isAccepted () );
126126 NumLib::updateTimeSteps (timestepper_dt4, previous_timestep,
127127 current_timestep);
128128 // / ts = PIDStepper->getTimeStep();
0 commit comments