From f86e1f7762e5fc3326015d04281cfca483467936 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Wed, 4 Dec 2013 15:25:37 +0100 Subject: Improved handling of non-existing blocks. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index ec6298a..df10c14 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -18149,12 +18149,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(np_data->last_retrieved_frame >= 0) { -- cgit v0.10.1