B:BD[
3.3335] → [
3.3335:3373]
mlmg.solve(sols, rhss, rtol, atol);
const CCTK_REAL maxerr = mlmg.solve(sols, rhss, rtol, atol);
#pragma omp critical
CCTK_VINFO("Solution error (norm_inf): %g", double(maxerr));
mlmg.compResidual(ress, sols, rhss);
#pragma omp critical
{
CCTK_VINFO("After solving:");
for (int i = -1; i < 10; ++i) {
const int j = 4, k = 4;
CCTK_VINFO("phi[%d,%d,%d]=%g", i, j, k,
double(sols.at(0)->array(0)(i, j, k, vi)));
}
for (int level = 0; level < int(ghext->leveldata.size()); ++level)
CCTK_VINFO("norm_inf rhs[%d]: %g", level,
double(rhss.at(level)->norminf(vi, 0, false, true)));
for (int level = 0; level < int(ghext->leveldata.size()); ++level)
CCTK_VINFO("norm_inf sol[%d]: %g", level,
double(sols.at(level)->norminf(vi, 0, false, true)));
for (int level = 0; level < int(ghext->leveldata.size()); ++level)
CCTK_VINFO("norm_inf res[%d]: %g", level,
double(ress.at(level)->norminf(vi, 0, false, true)));
}