/** * \file force_fields \brief * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #include #include #include IMPATOM_BEGIN_NAMESPACE void add_bonds(Hierarchy d, const ForceFieldParameters* ffp) { ffp->add_bonds(d); } void add_radii(Hierarchy d, const ForceFieldParameters* ffp, FloatKey radius_key) { // Temporary hack to maintain old interface for SAXS const CHARMMParameters *cp = dynamic_cast(ffp); if (cp) { IMP::Pointer top = cp->create_topology(d); top->apply_default_patches(cp); top->add_atom_types(d); } ffp->add_radii(d, 1.0, radius_key); } IMPATOM_END_NAMESPACE