-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range #397
Comments
Could you also post the files you used to generate this error? My guess without looking at the code is that |
I believe InterMol/intermol/lammps/lammps_parser.py Line 175 in 8d77a4f
Hard to tell without the input file but the error suggests that the dihedral coefficients are insufficiently or incorrectly specified or that InterMol does not have support for the format in which you specified them. |
I have encountered the same problem with opls type dihedrals. I added some print() commands to intermol/forces/forcefunctions.py. Here is my test input for imidazole molecule: 8 atoms 8 atom types 0 5.5 xlo xhi Masses 1 14.007 Pair Coeffs 1 0.17 3.25 Bond Coeffs 1 367 1.08 Angle Coeffs 1 70 109.8 Dihedral Coeffs 1 0.0 4.65 0.0 0.0 Atoms 1 1 1 -0.257 2.3095844 3.33866316 1 Velocities 1 0 0 0 Bonds 1 4 1 2 Angles 1 1 2 1 7 Dihedrals 1 1 4 2 1 7 Input file: units real dimension 3 pair_style lj/cut/coul/long 11.0 11.0 bond_style harmonic special_bonds lj/coul 0.0 0.0 0.5 read_data Imi.data Error: <class 'intermol.forces.harmonic_angle_type.HarmonicAngle'> It seems that the program expects 5th coefficient for opls dihedral. When I change dihedral from 1 0.0 4.65 0.0 0.0 to 1 0.0 4.65 0.0 0.0 0.0 there is no error in the output: <class 'intermol.forces.harmonic_angle_type.HarmonicAngle'> Output for dihedrals in .gro file: |
No description provided.
The text was updated successfully, but these errors were encountered: