1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-02 04:37:06 +01:00

Parallel_for elimination -> thread_loop.

This commit is contained in:
paboyle
2018-01-28 01:00:55 +00:00
parent 9597ab94eb
commit 9472b02771
14 changed files with 28 additions and 35 deletions

View File

@@ -86,9 +86,9 @@ int main (int argc, char ** argv)
PokeIndex<LorentzIndex>(mom,mommu,mu);
// fourth order exponential approx
parallel_for(auto i=mom.begin();i<mom.end();i++){ // exp(pmu dt) * Umu
thread_loop( (auto i=mom.begin();i<mom.end();i++),{ // exp(pmu dt) * Umu
Uprime[i](mu) = U[i](mu) + mom[i](mu)*U[i](mu)*dt ;
}
});
}
ComplexD Sprime = Action.S(Uprime);