diff options
| author | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2013-01-28 08:37:18 (GMT) | 
|---|---|---|
| committer | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2013-01-28 08:49:01 (GMT) | 
| commit | 20f305f0c6577be1c95de373d0fe07998334234d (patch) | |
| tree | 473c6e6c148a012defc0de664e05ad8c91ca4f27 | |
| parent | 4f13ec4f33a38ec58db97c723fff67808b58de26 (diff) | |
Update first trajectory frame set (if needed) when writing frame set
Conflicts:
	src/lib/tng_io.c
| -rw-r--r-- | src/lib/tng_io.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index eeba683..e6f2956 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -7981,7 +7981,6 @@ tng_function_status tng_frame_set_write(tng_trajectory_t tng_data,      &tng_data->current_trajectory_frame_set;      tng_function_status stat; -          tng_data->current_trajectory_frame_set_output_file_pos =      tng_data->last_trajectory_frame_set_output_file_pos =  @@ -7992,6 +7991,12 @@ tng_function_status tng_frame_set_write(tng_trajectory_t tng_data,          return(TNG_FAILURE);      } +    if(tng_data->first_trajectory_frame_set_output_file_pos == -1) +    { +        tng_data->first_trajectory_frame_set_output_file_pos = +        tng_data->current_trajectory_frame_set_output_file_pos; +    } +      tng_block_init(&block);      if(tng_frame_set_block_write(tng_data, block, hash_mode) != TNG_SUCCESS)  | 
