This commit is contained in:
Vasco C. B. Ferreira
2026-07-08 20:39:36 +02:00
parent 576655ae27
commit 59b95dd096
2 changed files with 11 additions and 4 deletions
+11 -1
View File
@@ -13,6 +13,7 @@
#include <iostream>
#include <memory>
#include <ostream>
#include <string>
#include <vector>
#include "nufi/fields.h"
@@ -151,7 +152,10 @@ NuFISolver::eval_rho(unsigned int n, std::vector<double> &X,
}
void NuFISolver::run() {
std::cout << "Building E_sline\n\n";
//====//====//
// Run prep //
//====//====//
using std::abs;
using std::max;
@@ -185,6 +189,10 @@ void NuFISolver::run() {
const double x_min = Parameters::X_DOMAIN_LEFT;
double dx = Parameters::CALC_DX;
//====//====//
// Time loop//
//====//====//
for (unsigned int it = 0; it < Nt; ++it) {
stopwatch<double> timer;
@@ -239,6 +247,8 @@ void NuFISolver::run() {
double refine_start = timer.elapsed();
poisson.coarse_and_refine_grid(it, phi_history);
refine_time = timer.elapsed() - refine_start;
std::cout << "Refinement step done in "
<< std::to_string(std::floor(refine_time)) << "[s]";
}
double timer_elapsed = timer.elapsed();