bug identified to be in refinement function, maybe in interpolation step...

This commit is contained in:
Vasco C. B. Ferreira
2026-07-11 13:28:18 +02:00
parent 5a5d97a485
commit 8bf295c85e
5 changed files with 24 additions and 2 deletions
+10
View File
@@ -4,6 +4,7 @@
#include <boost/qvm/mat_access.hpp>
#include <cmath>
#include <cstdlib>
#include <deal.II/base/exceptions.h>
#include <deal.II/base/point.h>
#include <deal.II/base/tensor.h>
#include <deal.II/numerics/vector_tools.h>
@@ -49,6 +50,15 @@ std::vector<double> NuFISolver::eval_ftilda(
for (size_t i = 0; i < x_size; ++i)
X[i] = X[i] - Parameters::DT * U[i];
AssertThrow(
phi_history[n].solution.size() ==
grid_struct[phi_history[n].grid_version].dof_handler->n_dofs(),
ExcMessage("In eval_ftilda: Solution size = " +
std::to_string(phi_history[n].solution.size()) +
", expected by grid_struct = " +
std::to_string(grid_struct[phi_history[n].grid_version]
.dof_handler->n_dofs())));
tmp = eval(X, grid_struct[phi_history[n].grid_version],
phi_history[n].solution); // call eval only once