1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-05 19:55:56 +01:00

Bracketing issue in macro

This commit is contained in:
Peter Boyle 2018-12-13 10:53:22 +00:00
parent b57a4d32aa
commit afc462bd58
2 changed files with 2 additions and 3 deletions

View File

@ -576,8 +576,7 @@ void A2Autils<FImpl>::PionFieldWVmom(Eigen::Tensor<ComplexD,4> &mat,
int pd = grid->_processors[orthogdim];
int pc = grid->_processor_coor[orthogdim];
thread_loop_collapse(2,(int lt=0;lt<ld;lt++),
{
thread_loop_collapse(2,(int lt=0;lt<ld;lt++), {
for(int pt=0;pt<pd;pt++){
int t = lt + pt*ld;
if (pt == pc){

View File

@ -94,7 +94,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
#else
#define thread_loop( range , ... ) for range { __VA_ARGS__ ; };
#define thread_loop_collapse2( range , ... ) for range { __VA_ARGS__ ; };
#define thread_loop_collapse ( N , range , ... ) for range { __VA_ARGS__ ; };
#define thread_loop_collapse( N , range , ... ) for range { __VA_ARGS__ ; };
#define thread_region
#define thread_loop_in_region( range , ... ) for range { __VA_ARGS__ ; };
#define thread_loop_collapse_in_region( N, range , ... ) for range { __VA_ARGS__ ; };