From 75b834171409b88e4cb20afbdf96bf1934778b4a Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Tue, 27 May 2014 13:19:04 +0200 Subject: [PATCH] Fix bug writing TNG output from dump. The output was incorrectly located in an if statement. Partial fix of #1510 Change-Id: I85823d9369f208f21f4bafe19705e9e4dd2da027 --- src/gromacs/tools/dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gromacs/tools/dump.c b/src/gromacs/tools/dump.c index ad94ac7162..559328908c 100644 --- a/src/gromacs/tools/dump.c +++ b/src/gromacs/tools/dump.c @@ -384,6 +384,9 @@ static void list_tng(const char gmx_unused *fn) /* Can't write any output because we don't know what arrays are valid. */ fprintf(stderr, "\nWARNING: Incomplete frame at time %g, will not write output\n", frame_time); + } + else + { list_tng_inner(fn, (0 == i), values, step, frame_time, n_values_per_frame, n_atoms, prec, nframe, block_name); } -- 2.22.0