44 gmx_output_env_t *oenv;
45#if GMX_VERSION >= 20210000
46 gmx::TimeUnit timeunit = gmx::TimeUnit::Picoseconds;
47 XvgFormat xvg = XvgFormat::None;
49 time_unit_t timeunit = time_ps;
50 xvg_format_t xvg = exvgNONE;
52#if GMX_VERSION >= 20230000
53 const std::filesystem::path path =
filename_;
57 output_env_init(&oenv, gmx::getProgramContext(), timeunit, FALSE, xvg, 0);
59 TRX_READ_X | TRX_READ_V | TRX_READ_F)) {
60 throw std::runtime_error(std::string(
"cannot open ") +
filename_);
62 output_env_done(oenv);
65 for (
Index i = 0; i < 3; i++) {
66 for (
Index j = 0; j < 3; j++) {
73 std::cout << std::endl;
76 throw std::runtime_error(
77 "number of beads in trajectory do not match topology");
102 gmx_output_env_t *oenv;
103#if GMX_VERSION >= 20210000
104 gmx::TimeUnit timeunit = gmx::TimeUnit::Picoseconds;
105 XvgFormat xvg = XvgFormat::None;
107 time_unit_t timeunit = time_ps;
108 xvg_format_t xvg = exvgNONE;
110 output_env_init(&oenv, gmx::getProgramContext(), timeunit, FALSE, xvg, 0);
114 output_env_done(oenv);
117 for (
Index i = 0; i < 3; i++) {
118 for (
Index j = 0; j < 3; j++) {