mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-05 11:45:56 +01:00
New loop construct
This commit is contained in:
parent
b881d5489b
commit
8e394d3bf9
@ -265,7 +265,7 @@ private:
|
||||
T = Zero();
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop( (int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
T_v[i]()(0, 1) = timesMinusI(F_v[i]()());
|
||||
T_v[i]()(1, 0) = timesMinusI(F_v[i]()());
|
||||
@ -283,7 +283,7 @@ private:
|
||||
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop( (int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
T_v[i]()(0, 1) = -F_v[i]()();
|
||||
T_v[i]()(1, 0) = F_v[i]()();
|
||||
@ -301,9 +301,8 @@ private:
|
||||
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop( (int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
|
||||
T_v[i]()(0, 0) = timesMinusI(F_v[i]()());
|
||||
T_v[i]()(1, 1) = timesI(F_v[i]()());
|
||||
T_v[i]()(2, 2) = timesMinusI(F_v[i]()());
|
||||
@ -320,7 +319,7 @@ private:
|
||||
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop( (int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
T_v[i]()(0, 1) = timesI(F_v[i]()());
|
||||
T_v[i]()(1, 0) = timesI(F_v[i]()());
|
||||
@ -338,7 +337,7 @@ private:
|
||||
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop( (int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
T_v[i]()(0, 1) = -(F_v[i]()());
|
||||
T_v[i]()(1, 0) = (F_v[i]()());
|
||||
@ -357,7 +356,7 @@ private:
|
||||
|
||||
auto T_v = T.View();
|
||||
auto F_v = F.View();
|
||||
thread_loop((int i = 0; i < CloverTerm.Grid()->oSites(); i++),
|
||||
thread_for(i, CloverTerm.Grid()->oSites(),
|
||||
{
|
||||
T_v[i]()(0, 0) = timesI(F_v[i]()());
|
||||
T_v[i]()(1, 1) = timesMinusI(F_v[i]()());
|
||||
|
Loading…
x
Reference in New Issue
Block a user