Page MenuHome

solver_main.diff

File Metadata

Author
Austin Benesh (abtrumpet)
Created
Nov 13 2013, 1:09 PM

solver_main.diff

Index: solver_main.cpp
===================================================================
RCS file: /cvsroot/bf-blender/blender/intern/elbeem/intern/solver_main.cpp,v
retrieving revision 1.7
diff -u -i -r1.7 solver_main.cpp
--- solver_main.cpp 29 Mar 2006 07:35:53 -0000 1.7
+++ solver_main.cpp 2 Apr 2006 21:41:59 -0000
@@ -2564,7 +2564,7 @@
// precompute weights to get rid of order dependancies
vector<lbmFloatSet> vWeights;
- vWeights.reserve( mListFull.size() + mListEmpty.size() );
+ vWeights.resize( 1 );
int weightIndex = 0;
int nbCount = 0;
LbmFloat nbWeights[LBM_DFNUM];
@@ -2592,6 +2592,7 @@
vWeights[weightIndex].numNbs = 0.0;
}
weightIndex++;
+ vWeights.resize( weightIndex + 1 );
}
for( vector<LbmPoint>::iterator iter=mListEmpty.begin();
iter != mListEmpty.end(); iter++ ) {
@@ -2616,6 +2617,7 @@
vWeights[weightIndex].numNbs = 0.0;
}
weightIndex++;
+ vWeights.resize( weightIndex + 1 );
}
weightIndex = 0;

Event Timeline