Skip to content

Commit

Permalink
fix MEMC3-liq
Browse files Browse the repository at this point in the history
  • Loading branch information
jpotoff committed Feb 10, 2025
1 parent 36a5b25 commit 9320eea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/moves/MoleculeExchange3Liq.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ inline uint MoleculeExchange3Liq::PickMolInCav()
molIndex[destBox].push_back(pickedL);
kindIndex[destBox].push_back(kindL);
// Find the center of large molecule in destBox
cavityCenter[destBox] = comCurrRef.Get(pickedL);
//cavityCenter[destBox] = comCurrRef.Get(pickedL);
//cavityCenter[destBox] = comCurrRef.Get(pickedL);
//2/10/2025: Borrowed this code from MEMC3 Need to use the atomic
//coordinate of the seed atom for regrowing the old molecule to generate
//correct rosenbluth weights.
uint start = molRef.MolStart(molIndex[destBox][0]) + largeBB[0];
cavityCenter[destBox] = coordCurrRef.Get(start);
//Use random orientation for cavity in destBox

SetBasis(cavityMatrix[destBox], prng.RandomUnitVect());
Expand Down

0 comments on commit 9320eea

Please sign in to comment.