diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/elbeem/intern/loop_tools.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/elbeem/intern/loop_tools.h b/intern/elbeem/intern/loop_tools.h index 10514251f1e..f06fa7c2861 100644 --- a/intern/elbeem/intern/loop_tools.h +++ b/intern/elbeem/intern/loop_tools.h @@ -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); \ } \ |