70 void setReferenceStructure(std::vector<Vector3d> ref,
Vector3d refCom) {
74 std::vector<Vector3d>::iterator i;
76 for (i = ref_.begin(); i != ref_.end(); ++i) {
77 (*i) = (*i) - refCom_;
81 forces_.resize(ref_.size());
86 std::vector<Vector3d> getRestraintForces() {
return forces_; }
89 std::vector<Vector3d> ref_;
90 std::vector<Vector3d> forces_;