diff --git a/Tests/ProcessLib/TestProcessLibOutput.cpp b/Tests/ProcessLib/TestProcessLibOutput.cpp index fc66e36821ef01ceef73ec02ffe175526d118782..feb746313ff9284b0602c2ff21a1eaf39d321738 100644 --- a/Tests/ProcessLib/TestProcessLibOutput.cpp +++ b/Tests/ProcessLib/TestProcessLibOutput.cpp @@ -58,13 +58,13 @@ protected: TEST_F(ProcessLibOutputDataSpecification, FixedOutputTimesAndEmptyRepeatsEachSteps) { - auto test = [](std::vector<double>& fixed_output_times) -> bool + auto test = [](std::vector<double>& fixed_output_time_points) -> bool { bool const output_residuals = false; ProcessLib::OutputDataSpecification output_data_specification{ {} /* output_variables */, - std::vector<double>{fixed_output_times}, + std::vector<double>{fixed_output_time_points}, {} /* repeats_each_steps */, output_residuals}; @@ -77,24 +77,25 @@ TEST_F(ProcessLibOutputDataSpecification, } } - if (fixed_output_times.empty()) + if (fixed_output_time_points.empty()) { return true; } // test time generated by random number generator that isn't included - // into fixed_output_times + // into fixed_output_time_points static const auto seed = static_cast<std::mt19937::result_type>( std::chrono::system_clock::now().time_since_epoch().count()); static std::mt19937 generator{seed}; - auto const [min, max] = std::minmax_element(fixed_output_times.begin(), - fixed_output_times.end()); + auto const [min, max] = std::minmax_element( + fixed_output_time_points.begin(), fixed_output_time_points.end()); static std::uniform_real_distribution<double> distribution(*min, *max); for (int i = 0; i < 100; i++) { auto const random_time = distribution(generator); - if (std::find(fixed_output_times.begin(), fixed_output_times.end(), - random_time) == fixed_output_times.end()) + if (std::find(fixed_output_time_points.begin(), + fixed_output_time_points.end(), + random_time) == fixed_output_time_points.end()) { if (output_data_specification.isOutputStep(1, random_time)) {