1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: reverse A2A matrix load for better DiskVector cache reuse

This commit is contained in:
Antonin Portelli 2018-10-18 17:50:16 +01:00
parent f333f3e575
commit a7cfa26901

View File

@ -318,8 +318,9 @@ void A2AMatrixIo<T>::load(Vec<VecT> &v, double *tRead)
std::cout << "Loading timeslice";
std::cout.flush();
*tRead = 0.;
for (unsigned int t = 0; t < nt_; ++t)
for (unsigned int tp1 = nt_; tp1 > 0; --tp1)
{
unsigned int t = tp1 - 1;
std::vector<hsize_t> offset = {static_cast<hsize_t>(t), 0, 0};
if (t % 10 == 0)