Skip to content

Why add force with vanish parameters? #7

Description

@ljw20180420

Even if a force does not have type, say Harmonic, it will be added to md.bond.Harmonic() with vanish parameters. Similar case happens for angles. Is this necessary? Does it harm the performance?

else:
harmonic_force.params[bond_type] = dict(k=0, r0=0)

else:
angular_force.params[angle_type] = dict(U=[0], tau=[0])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions