save_results working with vector evals

This commit is contained in:
Vasco C. B. Ferreira
2026-07-01 16:39:51 +02:00
parent 2b42bb7d02
commit 225757ce68
2 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -34,10 +34,11 @@ void save_f(const NuFISolver &solver, unsigned int n,
for (unsigned int j = 0; j < Nv_out; ++j) {
double v = vmin + (j + 0.5) * dv;
val = solver.eval_f(n, x_eval, v, poisson, phi_history);
for (unsigned int i = 0; i < Nx_out; ++i) {
file << val[i];
if (j < Nv_out - 1)
if (j < Nx_out - 1)
file << " ";
}