block solver working as expected without refinement, but breaks with refinement

This commit is contained in:
Vasco C. B. Ferreira
2026-07-12 16:25:36 +02:00
parent 33a501e650
commit f45804b736
2 changed files with 9 additions and 8 deletions
BIN
View File
Binary file not shown.
+9 -8
View File
@@ -285,14 +285,15 @@ void NuFISolver::run() {
if (it % Parameters::REFINE_FREQUENCY == 0 && it != 0) {
double refine_start = timer.elapsed();
poisson.coarse_and_refine_grid(it);
update_grid_versions(grid_versions, poisson);
refine_time = timer.elapsed() - refine_start;
std::cout << "Refinement step done in "
<< std::to_string(std::round(std::floor(refine_time))) << "[s]"
<< "\n";
// poisson.coarse_and_refine_grid(it);
//
// update_grid_versions(grid_versions, poisson);
//
// refine_time = timer.elapsed() - refine_start;
// std::cout << "Refinement step done in "
// << std::to_string(std::round(std::floor(refine_time))) <<
// "[s]"
// << "\n";
}
update_solution_history(phi_history, poisson,
grid_versions.back().grid_version);