From 0c6b5ba82049ed92c724d44b8451c992e8974124 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Wed, 4 Dec 2013 14:46:49 +0100 Subject: Improved handling of non-existing blocks. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 7a7c6db..fb9f238 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -18054,12 +18054,16 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_next_frame_present_dat { stat = tng_frame_set_read_current_only_data_from_block_id(tng_data, TNG_USE_HASH, block_id); - if(stat != TNG_SUCCESS) + if(stat == TNG_CRITICAL) { printf("Cannot read data block of frame set. %s: %d\n", __FILE__, __LINE__); return(stat); } + if(stat == TNG_FAILURE) + { + continue; + } } if(p_data->last_retrieved_frame >= 0) { -- cgit v0.10.1