Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/elbeem')
-rw-r--r--intern/elbeem/intern/loop_tools.h4
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); \
} \