/* This file is an example for the chemfiles library * Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ #include #include #include int main() { chemfiles::Trajectory file("filename.xyz"); chemfiles::Frame frame = file.read(); std::vector less_than_five; auto positions = frame.positions(); for (size_t i=0; i