We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a112fe + 5dfd216 commit 251b904Copy full SHA for 251b904
1 file changed
lib/algorithms/iterative/ImplicitlyRestartedLanczos.h
@@ -57,9 +57,8 @@ void basisRotate(std::vector<Field> &basis,Eigen::MatrixXd& Qt,int j0, int j1, i
57
58
parallel_region
59
{
60
- Vector < vobj > B; // Thread private
61
62
- PARALLEL_CRITICAL { B.resize(Nm); }
+ std::vector < vobj , commAllocator<vobj> > B(Nm); // Thread private
63
64
parallel_for_internal(int ss=0;ss < grid->oSites();ss++){
65
for(int j=j0; j<j1; ++j) B[j]=0.;
0 commit comments