forked from bartvdbraak/blender
Building elbeem without openmp failed
This commit is contained in:
parent
4b3865be4e
commit
6bb090f4bb
@ -799,6 +799,7 @@ bool LbmFsgrSolver::initializeSolverMemory()
|
|||||||
mLevel[i].avgOmegaCnt = 0.0;
|
mLevel[i].avgOmegaCnt = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PARALLEL == 1
|
||||||
/*
|
/*
|
||||||
// DG: this would be the correct sanity check, not the "hack below" */
|
// DG: this would be the correct sanity check, not the "hack below" */
|
||||||
// if(( mSizey / mNumOMPThreads) * mNumOMPThreads != mSizey) {
|
// if(( mSizey / mNumOMPThreads) * mNumOMPThreads != mSizey) {
|
||||||
@ -807,6 +808,7 @@ bool LbmFsgrSolver::initializeSolverMemory()
|
|||||||
if( mSizey < mNumOMPThreads ) {
|
if( mSizey < mNumOMPThreads ) {
|
||||||
setNumOMPThreads(mSizey);
|
setNumOMPThreads(mSizey);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// init sizes
|
// init sizes
|
||||||
mLevel[mMaxRefine].lSizex = mSizex;
|
mLevel[mMaxRefine].lSizex = mSizex;
|
||||||
|
Loading…
Reference in New Issue
Block a user