From 65de1cd0aa35ea20b7883f53f520de4796abbc00 Mon Sep 17 00:00:00 2001 From: "Vasco C. B. Ferreira" Date: Sat, 25 Jul 2026 17:57:59 +0200 Subject: [PATCH] fixed total time issue --- nufi/poisson_problem.h | 2 ++ src/nufi_solver.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nufi/poisson_problem.h b/nufi/poisson_problem.h index ac1e8b2..e8abb85 100644 --- a/nufi/poisson_problem.h +++ b/nufi/poisson_problem.h @@ -375,7 +375,9 @@ template void PoissonProblem::assemble_system() { Assert(rhs_function, ExcMessage("Poisson RHS function has not been initialized.")); + std::cout << "Start of full rho eval..." << "\n"; std::vector all_rho = rhs_function(all_q_points); + std::cout << "End of full rho eval..." << "\n"; Assert(all_rho.size() == all_q_points.size(), ExcMessage("rhs_function returned wrong size")); diff --git a/src/nufi_solver.cc b/src/nufi_solver.cc index 88733fd..b0044af 100644 --- a/src/nufi_solver.cc +++ b/src/nufi_solver.cc @@ -214,6 +214,7 @@ void NuFISolver::run() { std::ofstream time_file("results/simulation_time.dat"); double total_time = 0; + stopwatch total_timer; time_file << "it " << "step_time " @@ -322,7 +323,7 @@ void NuFISolver::run() { plot_time = timer.elapsed() - plot_start; std::cout << "Results saved in " << plot_start << "[s]" << "\n"; } - total_time = timer.elapsed(); + total_time = total_timer.elapsed(); std::cout << "Time since start = " << total_time << "\n\n"; time_file << it << " " << step_time << " " << total_time << " "