1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-10 14:10:46 +01:00

Views must be closed

This commit is contained in:
Peter Boyle 2020-06-03 09:10:29 -04:00
parent 32237895bd
commit 1c9f20b15e

View File

@ -140,6 +140,7 @@ public:
b = cp / c;
LinearCombTimer.Start();
{
auto psi_v = psi.View(AcceleratorWrite);
auto p_v = p.View(AcceleratorWrite);
auto r_v = r.View(AcceleratorWrite);
@ -149,6 +150,7 @@ public:
});
LinearCombTimer.Stop();
LinalgTimer.Stop();
}
std::cout << GridLogIterative << "ConjugateGradient: Iteration " << k
<< " residual " << sqrt(cp/ssq) << " target " << Tolerance << std::endl;