diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-11 09:54:00 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-11 09:54:00 (GMT) |
commit | 56614ac66d3642d44ff28805a7e5df5771cdc1e7 (patch) | |
tree | 0ce5a8d00e41c354bf18840c955cc3d485b29a6a /src | |
parent | 9ae17016f5ebd5607e6906b2afc290cf333733eb (diff) |
Changed if statement
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/tng_io_read_pos.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/tng_io_read_pos.c b/src/tests/tng_io_read_pos.c index edd85ae..753f475 100644 --- a/src/tests/tng_io_read_pos.c +++ b/src/tests/tng_io_read_pos.c @@ -54,11 +54,7 @@ int main(int argc, char **argv) // N.B. No proper error checks. if(tng_particle_data_interval_get(traj, TNG_TRAJ_POSITIONS, first_frame, last_frame, TNG_USE_HASH, &positions, &n_particles, &n_values_per_frame, - &data_type) != TNG_SUCCESS) - { - printf("Cannot read positions\n"); - } - else + &data_type) == TNG_SUCCESS) { // Print the positions of the wanted particle (zero based) for(i=0; i<n_frames; i++) @@ -84,6 +80,10 @@ int main(int argc, char **argv) } } } + else + { + printf("Cannot read positions\n"); + } // Free memory if(positions) |