Fix fluid openMP not baking with some threadcounts

This commit is contained in:
Jens Verwiebe
2011-09-23 09:26:03 +00:00
parent ccdf99de53
commit a7891da84b

View File

@@ -119,8 +119,8 @@
} \
\
const int Nj = mLevel[mMaxRefine].lSizey; \
int jstart = 0+( id * (Nj / Nthrds) ); \
int jend = 0+( (id+1) * (Nj / Nthrds) ); \
int jstart = 0+( (id * Nj ) / Nthrds ); \
int jend = 0+(((id+1) * Nj ) / Nthrds ); \
if( ((Nj/Nthrds) *Nthrds) != Nj) { \
errMsg("LbmFsgrSolver","Invalid domain size Nj="<<Nj<<" Nthrds="<<Nthrds); \
} \