From 75635a2b9935ec28b29d2879000612cc902e8911 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Wed, 25 Nov 2015 23:36:15 +0100 Subject: [PATCH] Use local variables instead of those in *ir. We set vout and fout to that values of ir->nstvout and ir->nstfout Use the local variables. Change-Id: I17dbc1f9c2fda7099cfa2f38da6600e2d175bd5a --- src/gromacs/fileio/tngio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gromacs/fileio/tngio.cpp b/src/gromacs/fileio/tngio.cpp index 6653dfaef9..ccfd2eb774 100644 --- a/src/gromacs/fileio/tngio.cpp +++ b/src/gromacs/fileio/tngio.cpp @@ -427,7 +427,7 @@ static void set_writing_intervals(tng_trajectory_t tng, } if (vout) { - set_writing_interval(tng, ir->nstvout, 3, TNG_TRAJ_VELOCITIES, + set_writing_interval(tng, vout, 3, TNG_TRAJ_VELOCITIES, "VELOCITIES", TNG_PARTICLE_BLOCK_DATA, compression); @@ -440,7 +440,7 @@ static void set_writing_intervals(tng_trajectory_t tng, } if (fout) { - set_writing_interval(tng, ir->nstfout, 3, TNG_TRAJ_FORCES, + set_writing_interval(tng, fout, 3, TNG_TRAJ_FORCES, "FORCES", TNG_PARTICLE_BLOCK_DATA, TNG_GZIP_COMPRESSION); -- 2.22.0