Skip to content

Fix solvating with truncated octahedral cells#1174

Merged
drroe merged 21 commits intoAmber-MD:masterfrom
drroe:fix.solvateoct
Mar 27, 2026
Merged

Fix solvating with truncated octahedral cells#1174
drroe merged 21 commits intoAmber-MD:masterfrom
drroe:fix.solvateoct

Conversation

@drroe
Copy link
Copy Markdown
Contributor

@drroe drroe commented Mar 26, 2026

V7.5.0

The code in LEaP had a bug in it which made it not scale up the truncated octahedral cell enough. This was OK for small systems, but as system size increased the unit cell would eventually become too small to properly encapsulate the solute. Here is an example for the PDB ID 1JJ2:

leap trunoct

Nikolai Skrynnikov from Purdue identified this bug in LEaP and corrected it. This PR employs this fix so that truncated octahedral cells properly encapsulate the solute no matter what the size:

cpptraj truncoct

This PR also enables truncoct solvation with the nsolvent keyword for the build command.

This also adds a hidden keyword to the minimage action, toface which is for calculating the closest distance to the center of any unit cell face, but this is mainly intended for debugging.

@drroe drroe self-assigned this Mar 26, 2026
@drroe drroe added enhancement bugfix New keywords New keywords for existing commands. labels Mar 26, 2026
@drroe
Copy link
Copy Markdown
Contributor Author

drroe commented Mar 26, 2026

Looks like the Jenkins runners are down

@drroe drroe merged commit bf1f289 into Amber-MD:master Mar 27, 2026
13 checks passed
@drroe drroe deleted the fix.solvateoct branch March 27, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix enhancement New keywords New keywords for existing commands.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant