Skip to content

Commit d14b6e0

Browse files
committed
Merged in geoOptFixSegFault (pull request #582)
Fix segfault in GeoOpt Approved-by: Sambit Das
2 parents d84415e + 6c6dfd7 commit d14b6e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dft/initBoundaryConditions.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ namespace dftfe
406406
std::min(d_dftParamsPtr->chebyWfcBlockSize, d_numEigenValues);
407407

408408
d_basisOperationsPtrDevice->createScratchMultiVectors(1, 3);
409-
d_basisOperationsPtrDevice->createScratchMultiVectors(BVec, 2);
409+
d_basisOperationsPtrDevice->createScratchMultiVectors(
410+
BVec, d_dftParamsPtr->overlapComputeCommunCheby ? 4 : 2);
410411
}
411412
#endif
412413

0 commit comments

Comments
 (0)