openbabel icon indicating copy to clipboard operation
openbabel copied to clipboard

Periodic structure to Tinker MM3 - segmentation fault

Open SanderBorgmans opened this issue 3 years ago • 3 comments

  • [x] I believe this to be a bug with Open Babel
  • [ ] This is a feature request

Environment Information

Open Babel version: 2.4.1 (or the 2.3.2 GUI version) Operating system and version: CentOS Linux 7 (Core)

Expected Behavior

Converting a periodic structure (e.g. .pdb file) to Tinker MM3 format.

Actual Behavior

Because of the periodic boundary conditions, it appears the bonds can not be recognized and the MM3 atom types can not be derived, leading to a segmentation fault. However the MM2 atom types can be derived (dropping the -x3 option). I don't mind the bonds not being recognized, I could just create a 3x3x3 supercell and look at the atom types of the central cell.

Steps to Reproduce

obabel -ixyz test.xyz -otxyz -x3 test.zip

SanderBorgmans avatar Dec 07 '21 09:12 SanderBorgmans

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Dec 07 '21 09:12 welcome[bot]

The first thing to try is with a recent version of Open Babel if you have the possibility. 2.4.1 is rather old.

fredrikw avatar Dec 07 '21 10:12 fredrikw

@fredrikw Thanks for your response. The same issue arises with the newest version of openbabel (3.1.1)

SanderBorgmans avatar Dec 16 '21 09:12 SanderBorgmans