diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-15 13:18:59 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-10-15 13:18:59 (GMT) |
commit | ba62d1b75275732e8604630d05bce4532ab1675b (patch) | |
tree | c4627dd3a77e4eb7855feee8637e2437378b7478 /src/tests | |
parent | 213338f26f6d250d5acd2c25037f8bd7462be997 (diff) |
Changed signature of tng_util_*_with_time_write to use double.
Minor fixes.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/tng_io_read_pos.c | 10 | ||||
-rw-r--r-- | src/tests/tng_io_read_pos_util.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/tng_io_read_pos.c b/src/tests/tng_io_read_pos.c index 81a522a..6741bec 100644 --- a/src/tests/tng_io_read_pos.c +++ b/src/tests/tng_io_read_pos.c @@ -24,7 +24,7 @@ int main(int argc, char **argv) int64_t n_particles, n_values_per_frame, n_frames, tot_n_frames; char data_type; int i, j; - int64_t particle = 0; + int particle = 0; // Set a default frame range int first_frame = 0, last_frame = 50; char atom_name[64], res_name[64], chain_name[64]; @@ -33,7 +33,7 @@ int main(int argc, char **argv) { printf("No file specified\n"); printf("Usage:\n"); - printf("tng_io_read_pos <tng_file> [particle number = %"PRId64"] " + printf("tng_io_read_pos <tng_file> [particle number = %d] " "[first_frame = %d] [last_frame = %d]\n", particle, first_frame, last_frame); exit(1); @@ -52,13 +52,13 @@ int main(int argc, char **argv) if(argc >= 3) { - particle = strtoll(argv[2], 0, 10); + particle = strtol(argv[2], 0, 10); if(argc >= 4) { - first_frame = strtoll(argv[3], 0, 10); + first_frame = strtol(argv[3], 0, 10); if(argc >= 5) { - last_frame = strtoll(argv[4], 0, 10); + last_frame = strtol(argv[4], 0, 10); } } } diff --git a/src/tests/tng_io_read_pos_util.c b/src/tests/tng_io_read_pos_util.c index 467afbf..5d2c8ea 100644 --- a/src/tests/tng_io_read_pos_util.c +++ b/src/tests/tng_io_read_pos_util.c @@ -27,14 +27,14 @@ int main(int argc, char **argv) float *positions = 0, *box_shape = 0; int64_t n_particles, n_frames, tot_n_frames, stride_length, i, j; // Set a default frame range - int64_t first_frame = 0, last_frame = 5000, n_strides; + int first_frame = 0, last_frame = 5000, n_strides; if(argc <= 1) { printf("No file specified\n"); printf("Usage:\n"); printf("tng_io_read_pos <tng_file> " - "[first_frame = %"PRId64"] [last_frame = %"PRId64"]\n", + "[first_frame = %d] [last_frame = %d]\n", first_frame, last_frame); exit(1); } @@ -44,10 +44,10 @@ int main(int argc, char **argv) if(argc >= 3) { - first_frame = strtoll(argv[2], 0, 10); + first_frame = strtol(argv[2], 0, 10); if(argc >= 4) { - last_frame = strtoll(argv[3], 0, 10); + last_frame = strtol(argv[3], 0, 10); } } |