diff --git a/tests/Test_stencil.cc b/tests/Test_stencil.cc index 6835dd63..5adcaabc 100644 --- a/tests/Test_stencil.cc +++ b/tests/Test_stencil.cc @@ -109,12 +109,14 @@ int main(int argc, char ** argv) { StencilEntry *SE; SE = myStencil.GetEntry(permute_type,0,i); + auto check = Check.View(); + auto foo = Foo.View(); if ( SE->_is_local && SE->_permute ) - permute(Check[i],Foo[SE->_offset],permute_type); + permute(check[i],foo[SE->_offset],permute_type); else if (SE->_is_local) - Check[i] = Foo[SE->_offset]; + check[i] = foo[SE->_offset]; else { - Check[i] = myStencil.CommBuf()[SE->_offset]; + check[i] = myStencil.CommBuf()[SE->_offset]; // std::cout << " receive "< 1.0e-4) { - for(int i=0;i 1.0e-4) exit(-1); @@ -206,12 +210,14 @@ int main(int argc, char ** argv) { SE = EStencil.GetEntry(permute_type,0,i); // std::cout << "Even source "<< i<<" -> " <_offset << " "<< SE->_is_local<_is_local && SE->_permute ) - permute(OCheck[i],EFoo[SE->_offset],permute_type); + permute(ocheck[i],efoo[SE->_offset],permute_type); else if (SE->_is_local) - OCheck[i] = EFoo[SE->_offset]; + ocheck[i] = efoo[SE->_offset]; else - OCheck[i] = EStencil.CommBuf()[SE->_offset]; + ocheck[i] = EStencil.CommBuf()[SE->_offset]; } OStencil.HaloExchange(OFoo,compress); for(int i=0;ioSites();i++){ @@ -220,12 +226,14 @@ int main(int argc, char ** argv) { SE = OStencil.GetEntry(permute_type,0,i); // std::cout << "ODD source "<< i<<" -> " <_offset << " "<< SE->_is_local<_is_local && SE->_permute ) - permute(ECheck[i],OFoo[SE->_offset],permute_type); + permute(echeck[i],ofoo[SE->_offset],permute_type); else if (SE->_is_local) - ECheck[i] = OFoo[SE->_offset]; + echeck[i] = ofoo[SE->_offset]; else - ECheck[i] = OStencil.CommBuf()[SE->_offset]; + echeck[i] = OStencil.CommBuf()[SE->_offset]; } setCheckerboard(Check,ECheck); diff --git a/tests/core/Test_cshift_red_black.cc b/tests/core/Test_cshift_red_black.cc index 4c16ef25..68489c4a 100644 --- a/tests/core/Test_cshift_red_black.cc +++ b/tests/core/Test_cshift_red_black.cc @@ -30,7 +30,6 @@ Author: paboyle #include using namespace Grid; - ; #define POWER10 @@ -84,10 +83,11 @@ int main (int argc, char ** argv) pickCheckerboard(Odd,Uo,U); // std::cout< diff; + Complex diff; std::vector shiftcoor = coor; shiftcoor[dir] = (shiftcoor[dir] + shift + latt_size[dir]) % diff --git a/tests/core/Test_staggered5D.cc b/tests/core/Test_staggered5D.cc index e9b58fe0..907cf4ec 100644 --- a/tests/core/Test_staggered5D.cc +++ b/tests/core/Test_staggered5D.cc @@ -89,9 +89,11 @@ int main (int argc, char ** argv) // replicate across fifth dimension //////////////////////////////////// LatticeGaugeField Umu5d(FGrid); + auto umu5d = Umu5d.View(); + auto umu = Umu.View(); for(int ss=0;ssoSites();ss++){ for(int s=0;s(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom, mommu, mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin(); i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom, mommu, mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin(); i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom, mommu, mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin(); i(mom, mommu, mu); - + auto U_v = U.View(); + auto mom_v = mom.View(); + auto Uprime_v = Uprime.View(); // fourth order exponential approx - thread_loop( (auto i=mom.begin(); i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i using namespace std; using namespace Grid; - ; - - int main (int argc, char ** argv) { @@ -104,14 +101,17 @@ int main (int argc, char ** argv) PokeIndex(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i(mom,mu); diff --git a/tests/forces/Test_zmobius_force.cc b/tests/forces/Test_zmobius_force.cc index a7b39deb..9d110aba 100644 --- a/tests/forces/Test_zmobius_force.cc +++ b/tests/forces/Test_zmobius_force.cc @@ -115,15 +115,18 @@ int main (int argc, char ** argv) PokeIndex(mom,mommu,mu); // fourth order exponential approx - thread_loop( (auto i=mom.begin();i -int main(int argc, char **argv) { +int main(int argc, char **argv) +{ using namespace Grid; - ; Grid_init(&argc, &argv); GridLogLayout();