diff --git a/numerical_methods/durand_kerner_roots.cpp b/numerical_methods/durand_kerner_roots.cpp index 5d9baa932..80464412a 100644 --- a/numerical_methods/durand_kerner_roots.cpp +++ b/numerical_methods/durand_kerner_roots.cpp @@ -177,9 +177,10 @@ std::pair durand_kerner_algo( if (break_loop) break; - if (log_file.is_open()) + if (log_file.is_open()) { for (n = 0; n < roots->size(); n++) log_file << complex_str((*roots)[n]) << ","; + } #if defined(DEBUG) || !defined(NDEBUG) if (iter % 500 == 0) {