summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c1126
1 files changed, 563 insertions, 563 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 78d627a..6502919 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -685,14 +685,14 @@ static tng_function_status tng_input_file_init(tng_trajectory_t tng_data)
{
if(!tng_data->input_file_path)
{
- printf("No file specified for reading. %s: %d\n",
+ printf("TNG library: TNG library: No file specified for reading. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
tng_data->input_file = fopen(tng_data->input_file_path, "r");
if(!tng_data->input_file)
{
- printf("Cannot open file %s. %s: %d\n",
+ printf("TNG library: TNG library: Cannot open file %s. %s: %d\n",
tng_data->input_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -711,7 +711,7 @@ static tng_function_status tng_output_file_init(tng_trajectory_t tng_data)
{
if(!tng_data->output_file_path)
{
- printf("No file specified for writing. %s: %d\n",
+ printf("TNG library: TNG library: No file specified for writing. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -720,7 +720,7 @@ static tng_function_status tng_output_file_init(tng_trajectory_t tng_data)
if(!tng_data->output_file)
{
- printf("Cannot open file %s. %s: %d\n",
+ printf("TNG library: TNG library: Cannot open file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -742,7 +742,7 @@ static tng_function_status tng_block_init(struct tng_gen_block **block_p)
if(!*block_p)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_gen_block), __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -778,7 +778,7 @@ static tng_function_status tng_block_destroy(struct tng_gen_block **block_p)
return(TNG_SUCCESS);
}
-/* printf("Destroying block\n"); */
+/* printf("TNG library: TNG library: Destroying block\n"); */
if(block->name)
{
free(block->name);
@@ -821,7 +821,7 @@ static tng_function_status tng_block_header_read
if(fread(&block->header_contents_size, sizeof(block->header_contents_size),
1, tng_data->input_file) == 0)
{
- printf("Cannot read header size. %s: %d\n",
+ printf("TNG library: TNG library: Cannot read header size. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -888,7 +888,7 @@ static tng_function_status tng_block_header_read
&block->header_contents_size)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -907,7 +907,7 @@ static tng_function_status tng_block_header_read
block->header_contents = malloc(block->header_contents_size);
if(!block->header_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->header_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -918,7 +918,7 @@ static tng_function_status tng_block_header_read
if(fread(block->header_contents, block->header_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read header. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read header. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -935,7 +935,7 @@ static tng_function_status tng_block_header_read
&block->block_contents_size)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -949,7 +949,7 @@ static tng_function_status tng_block_header_read
&block->id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -970,7 +970,7 @@ static tng_function_status tng_block_header_read
block->name = malloc(len);
if(!block->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -986,7 +986,7 @@ static tng_function_status tng_block_header_read
&block->block_version)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1007,27 +1007,27 @@ static tng_function_status tng_block_header_read
// {
// if(!block->header_contents)
// {
-// printf("No contents to write. %s: %d\n", __FILE__, __LINE__);
+// printf("TNG library: No contents to write. %s: %d\n", __FILE__, __LINE__);
// return(TNG_FAILURE);
// }
// if(fwrite(block->header_contents, block->header_contents_size, 1,
// tng_data->output_file) != 1)
// {
-// printf("Could not write all header data. %s: %d\n",
+// printf("TNG library: Could not write all header data. %s: %d\n",
// __FILE__, __LINE__);
// return(TNG_CRITICAL);
// }
//
// if(!block->block_contents)
// {
-// printf("No block data to write. %s: %d\n",
+// printf("TNG library: No block data to write. %s: %d\n",
// __FILE__, __LINE__);
// return(TNG_FAILURE);
// }
// if(fwrite(block->block_contents, block->block_contents_size, 1,
// tng_data->output_file) != 1)
// {
-// printf("Could not write all block data. %s: %d\n",
+// printf("TNG library: Could not write all block data. %s: %d\n",
// __FILE__, __LINE__);
// return(TNG_CRITICAL);
// }
@@ -1051,7 +1051,7 @@ static tng_function_status tng_block_header_write
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1062,7 +1062,7 @@ static tng_function_status tng_block_header_write
block->name = malloc(1);
if(!block->name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1092,7 +1092,7 @@ static tng_function_status tng_block_header_write
block->header_contents = malloc(block->header_contents_size);
if(!block->header_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->header_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1107,7 +1107,7 @@ static tng_function_status tng_block_header_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1121,7 +1121,7 @@ static tng_function_status tng_block_header_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1134,7 +1134,7 @@ static tng_function_status tng_block_header_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1154,7 +1154,7 @@ static tng_function_status tng_block_header_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1162,7 +1162,7 @@ static tng_function_status tng_block_header_write
if(fwrite(block->header_contents, block->header_contents_size,
1, tng_data->output_file) != 1)
{
- printf("Could not write all header data. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Could not write all header data. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
return(TNG_SUCCESS);
@@ -1195,7 +1195,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(block->block_contents, block->block_contents_size);
if(!temp)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
free(block->block_contents);
block->block_contents = 0;
@@ -1208,7 +1208,7 @@ static tng_function_status tng_general_info_block_read
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1220,7 +1220,7 @@ static tng_function_status tng_general_info_block_read
tng_md5_hash_match_verify(block, &same_hash);
if(same_hash != TNG_TRUE)
{
- printf("General info block contents corrupt. Hashes do not match. "
+ printf("TNG library: General info block contents corrupt. Hashes do not match. "
"%s: %d\n",
__FILE__, __LINE__);
/* return(TNG_FAILURE); */
@@ -1231,7 +1231,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->first_program_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->first_program_name);
tng_data->first_program_name = 0;
@@ -1245,7 +1245,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->last_program_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->last_program_name);
tng_data->last_program_name = 0;
@@ -1259,7 +1259,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->first_user_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->first_user_name);
tng_data->first_user_name = 0;
@@ -1273,7 +1273,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->last_user_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->last_user_name);
tng_data->last_user_name = 0;
@@ -1287,7 +1287,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->first_computer_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->first_computer_name);
tng_data->first_computer_name = 0;
@@ -1301,7 +1301,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->last_computer_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->last_computer_name);
tng_data->last_computer_name = 0;
@@ -1315,7 +1315,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->first_pgp_signature, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->first_pgp_signature);
tng_data->first_pgp_signature = 0;
@@ -1329,7 +1329,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->last_pgp_signature, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->last_pgp_signature);
tng_data->last_pgp_signature = 0;
@@ -1343,7 +1343,7 @@ static tng_function_status tng_general_info_block_read
temp = realloc(tng_data->forcefield_name, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->forcefield_name);
tng_data->forcefield_name = 0;
@@ -1361,7 +1361,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->time)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1379,7 +1379,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->frame_set_n_frames)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1394,7 +1394,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->first_trajectory_frame_set_input_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1413,7 +1413,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->last_trajectory_frame_set_input_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1427,7 +1427,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->medium_stride_length)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1441,7 +1441,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->long_stride_length)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1457,7 +1457,7 @@ static tng_function_status tng_general_info_block_read
&tng_data->distance_unit_exponential)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1497,7 +1497,7 @@ static tng_function_status tng_general_info_block_write
tng_data->first_program_name = malloc(1);
if(!tng_data->first_program_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1508,7 +1508,7 @@ static tng_function_status tng_general_info_block_write
tng_data->last_program_name = malloc(1);
if(!tng_data->last_program_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1519,7 +1519,7 @@ static tng_function_status tng_general_info_block_write
tng_data->first_user_name = malloc(1);
if(!tng_data->first_user_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1530,7 +1530,7 @@ static tng_function_status tng_general_info_block_write
tng_data->last_user_name = malloc(1);
if(!tng_data->last_user_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1541,7 +1541,7 @@ static tng_function_status tng_general_info_block_write
tng_data->first_computer_name = malloc(1);
if(!tng_data->first_computer_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1552,7 +1552,7 @@ static tng_function_status tng_general_info_block_write
tng_data->last_computer_name = malloc(1);
if(!tng_data->last_computer_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1563,7 +1563,7 @@ static tng_function_status tng_general_info_block_write
tng_data->first_pgp_signature = malloc(1);
if(!tng_data->first_pgp_signature)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1574,7 +1574,7 @@ static tng_function_status tng_general_info_block_write
tng_data->last_pgp_signature = malloc(1);
if(!tng_data->last_pgp_signature)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1585,7 +1585,7 @@ static tng_function_status tng_general_info_block_write
tng_data->forcefield_name = malloc(1);
if(!tng_data->forcefield_name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -1599,7 +1599,7 @@ static tng_function_status tng_general_info_block_write
block->name = malloc(name_len + 1);
if(!block->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
name_len+1, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -1652,7 +1652,7 @@ static tng_function_status tng_general_info_block_write
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -1698,7 +1698,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1716,7 +1716,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1731,7 +1731,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1746,7 +1746,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1760,7 +1760,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1774,7 +1774,7 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1788,14 +1788,14 @@ static tng_function_status tng_general_info_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -1804,7 +1804,7 @@ static tng_function_status tng_general_info_block_write
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Could not write all block data. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -1836,7 +1836,7 @@ static tng_function_status tng_chain_data_read(tng_trajectory_t tng_data,
&chain->id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1857,7 +1857,7 @@ static tng_function_status tng_chain_data_read(tng_trajectory_t tng_data,
&chain->n_residues)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1887,7 +1887,7 @@ static tng_function_status tng_chain_data_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+*offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1905,7 +1905,7 @@ static tng_function_status tng_chain_data_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+*offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1936,7 +1936,7 @@ static tng_function_status tng_residue_data_read(tng_trajectory_t tng_data,
&residue->id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1957,7 +1957,7 @@ static tng_function_status tng_residue_data_read(tng_trajectory_t tng_data,
&residue->n_atoms)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -1987,7 +1987,7 @@ static tng_function_status tng_residue_data_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+*offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2005,7 +2005,7 @@ static tng_function_status tng_residue_data_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+*offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2036,7 +2036,7 @@ static tng_function_status tng_atom_data_read(tng_trajectory_t tng_data,
&atom->id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2081,7 +2081,7 @@ static tng_function_status tng_atom_data_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+*offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2134,7 +2134,7 @@ static tng_function_status tng_molecules_block_read
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2144,7 +2144,7 @@ static tng_function_status tng_molecules_block_read
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
}
/* FIXME: Does not check if the size of the contents matches the expected
@@ -2155,7 +2155,7 @@ static tng_function_status tng_molecules_block_read
tng_md5_hash_match_verify(block, &same_hash);
if(same_hash != TNG_TRUE)
{
- printf("Molecules block contents corrupt. Hashes do not match. "
+ printf("TNG library: Molecules block contents corrupt. Hashes do not match. "
"%s: %d\n",
__FILE__, __LINE__);
}
@@ -2180,7 +2180,7 @@ static tng_function_status tng_molecules_block_read
&tng_data->n_molecules)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2197,7 +2197,7 @@ static tng_function_status tng_molecules_block_read
sizeof(struct tng_molecule));
if(!tng_data->molecules)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
tng_data->n_molecules * sizeof(struct tng_molecule),
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -2213,7 +2213,7 @@ static tng_function_status tng_molecules_block_read
tng_data->n_molecules);
if(!tng_data->molecule_cnt_list)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
tng_data->n_molecules * sizeof(struct tng_molecule),
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -2233,13 +2233,13 @@ static tng_function_status tng_molecules_block_read
&molecule->id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
offset += sizeof(molecule->id);
-/* printf("Read id: %"PRId64" offset: %d\n", molecule->id, offset);*/
+/* printf("TNG library: Read id: %"PRId64" offset: %d\n", molecule->id, offset);*/
len = tng_min_i((int)strlen(block->block_contents+offset) + 1, TNG_MAX_STR_LEN);
molecule->name = malloc(len);
strncpy(molecule->name, block->block_contents+offset, len);
@@ -2253,7 +2253,7 @@ static tng_function_status tng_molecules_block_read
&molecule->quaternary_str)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2270,7 +2270,7 @@ static tng_function_status tng_molecules_block_read
&tng_data->molecule_cnt_list[i])
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2286,7 +2286,7 @@ static tng_function_status tng_molecules_block_read
&molecule->n_chains)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2300,7 +2300,7 @@ static tng_function_status tng_molecules_block_read
&molecule->n_residues)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2314,7 +2314,7 @@ static tng_function_status tng_molecules_block_read
&molecule->n_atoms)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2329,7 +2329,7 @@ static tng_function_status tng_molecules_block_read
sizeof(struct tng_chain));
if(!molecule->chains)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
molecule->n_chains * sizeof(struct tng_chain),
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -2348,7 +2348,7 @@ static tng_function_status tng_molecules_block_read
sizeof(struct tng_residue));
if(!molecule->residues)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
molecule->n_residues * sizeof(struct tng_residue),
__FILE__, __LINE__);
if(molecule->chains)
@@ -2370,7 +2370,7 @@ static tng_function_status tng_molecules_block_read
sizeof(struct tng_atom));
if(!molecule->atoms)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
molecule->n_atoms * sizeof(struct tng_atom),
__FILE__, __LINE__);
if(molecule->chains)
@@ -2466,7 +2466,7 @@ static tng_function_status tng_molecules_block_read
&molecule->n_bonds)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2478,7 +2478,7 @@ static tng_function_status tng_molecules_block_read
sizeof(struct tng_bond));
if(!molecule->bonds)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
molecule->n_bonds * sizeof(struct tng_bond),
__FILE__, __LINE__);
if(molecule->chains)
@@ -2511,7 +2511,7 @@ static tng_function_status tng_molecules_block_read
&bond->from_atom_id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2525,7 +2525,7 @@ static tng_function_status tng_molecules_block_read
&bond->to_atom_id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2577,7 +2577,7 @@ static tng_function_status tng_molecules_block_write
molecule->name = malloc(1);
if(!molecule->name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2595,7 +2595,7 @@ static tng_function_status tng_molecules_block_write
chain->name = malloc(1);
if(!chain->name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2618,7 +2618,7 @@ static tng_function_status tng_molecules_block_write
residue->name = malloc(1);
if(!residue->name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2640,7 +2640,7 @@ static tng_function_status tng_molecules_block_write
atom->name = malloc(1);
if(!atom->name)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2653,7 +2653,7 @@ static tng_function_status tng_molecules_block_write
atom->atom_type = malloc(1);
if(!atom->atom_type)
{
- printf("Cannot allocate memory (1 byte). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (1 byte). %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2677,7 +2677,7 @@ static tng_function_status tng_molecules_block_write
block->name = malloc(name_len + 1);
if(!block->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
name_len+1, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -2704,7 +2704,7 @@ static tng_function_status tng_molecules_block_write
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -2718,7 +2718,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2735,13 +2735,13 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
offset += sizeof(molecule->id);
-/* printf("Wrote id: %"PRId64" offset: %d\n", molecule->id, offset); */
+/* printf("TNG library: Wrote id: %"PRId64" offset: %d\n", molecule->id, offset); */
len = tng_min_i((int)strlen(molecule->name) + 1, TNG_MAX_STR_LEN);
strncpy(block->block_contents + offset, molecule->name, len);
offset += len;
@@ -2754,7 +2754,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2770,7 +2770,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2785,7 +2785,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2799,7 +2799,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2813,7 +2813,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2882,7 +2882,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2899,7 +2899,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2913,7 +2913,7 @@ static tng_function_status tng_molecules_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -2925,7 +2925,7 @@ static tng_function_status tng_molecules_block_write
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -2934,7 +2934,7 @@ static tng_function_status tng_molecules_block_write
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n",
+ printf("TNG library: Could not write all block data. %s: %d\n",
__FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -2980,7 +2980,7 @@ static tng_function_status tng_frame_set_block_read
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -2990,7 +2990,7 @@ static tng_function_status tng_frame_set_block_read
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3005,7 +3005,7 @@ static tng_function_status tng_frame_set_block_read
tng_md5_hash_match_verify(block, &same_hash);
if(same_hash != TNG_TRUE)
{
- printf("Frame set block contents corrupt. File pos %ld Hashes do not match. "
+ printf("TNG library: Frame set block contents corrupt. File pos %ld Hashes do not match. "
"%s: %d\n",
file_pos, __FILE__, __LINE__);
/* return(TNG_FAILURE); */
@@ -3049,7 +3049,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->first_frame)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3063,7 +3063,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->n_frames)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3082,7 +3082,7 @@ static tng_function_status tng_frame_set_block_read
if(!frame_set->molecule_cnt_list)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(int64_t) * tng_data->n_molecules,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -3099,7 +3099,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->molecule_cnt_list[i])
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3122,7 +3122,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->next_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3137,7 +3137,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->prev_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3152,7 +3152,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->medium_stride_next_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3167,7 +3167,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->medium_stride_prev_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3182,7 +3182,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->long_stride_next_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3197,7 +3197,7 @@ static tng_function_status tng_frame_set_block_read
&frame_set->long_stride_prev_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3214,7 +3214,7 @@ static tng_function_status tng_frame_set_block_read
(int64_t *)&frame_set->first_frame_time)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3229,7 +3229,7 @@ static tng_function_status tng_frame_set_block_read
(int64_t *)&tng_data->time_per_frame)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3275,7 +3275,7 @@ static tng_function_status tng_frame_set_block_write
temp_name = realloc(block->name, name_len + 1);
if(!temp_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
name_len+1, __FILE__, __LINE__);
free(block->name);
block->name = 0;
@@ -3301,7 +3301,7 @@ static tng_function_status tng_frame_set_block_write
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3314,7 +3314,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3328,7 +3328,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3347,7 +3347,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3364,7 +3364,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3378,7 +3378,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3393,7 +3393,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3408,7 +3408,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3423,7 +3423,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3438,7 +3438,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3453,7 +3453,7 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3468,14 +3468,14 @@ static tng_function_status tng_frame_set_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3483,7 +3483,7 @@ static tng_function_status tng_frame_set_block_write
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Could not write all block data. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3527,7 +3527,7 @@ static tng_function_status tng_trajectory_mapping_block_read
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3537,7 +3537,7 @@ static tng_function_status tng_trajectory_mapping_block_read
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3549,7 +3549,7 @@ static tng_function_status tng_trajectory_mapping_block_read
tng_md5_hash_match_verify(block, &same_hash);
if(same_hash != TNG_TRUE)
{
- printf("Particle mapping block contents corrupt. Hashes do not match. "
+ printf("TNG library: Particle mapping block contents corrupt. Hashes do not match. "
"%s: %d\n",
__FILE__, __LINE__);
/* return(TNG_FAILURE); */
@@ -3562,7 +3562,7 @@ static tng_function_status tng_trajectory_mapping_block_read
frame_set->n_mapping_blocks);
if(!mappings)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
free(frame_set->mappings);
frame_set->mappings = 0;
@@ -3580,7 +3580,7 @@ static tng_function_status tng_trajectory_mapping_block_read
&mapping->num_first_particle)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3594,7 +3594,7 @@ static tng_function_status tng_trajectory_mapping_block_read
&mapping->n_particles)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3604,7 +3604,7 @@ static tng_function_status tng_trajectory_mapping_block_read
sizeof(int64_t));
if(!mapping->real_particle_numbers)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
mapping->n_particles * sizeof(int64_t), __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3622,7 +3622,7 @@ static tng_function_status tng_trajectory_mapping_block_read
&mapping->real_particle_numbers[i])
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
offset += sizeof(int64_t);
@@ -3663,7 +3663,7 @@ static tng_function_status tng_trajectory_mapping_block_write
if(mapping_block_nr >=
tng_data->current_trajectory_frame_set.n_mapping_blocks)
{
- printf("Mapping block index out of bounds. %s: %d\n",
+ printf("TNG library: Mapping block index out of bounds. %s: %d\n",
__FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -3680,7 +3680,7 @@ static tng_function_status tng_trajectory_mapping_block_write
temp_name = realloc(block->name, name_len + 1);
if(!temp_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
name_len+1, __FILE__, __LINE__);
free(block->name);
block->name = 0;
@@ -3700,7 +3700,7 @@ static tng_function_status tng_trajectory_mapping_block_write
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3713,7 +3713,7 @@ static tng_function_status tng_trajectory_mapping_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3727,7 +3727,7 @@ static tng_function_status tng_trajectory_mapping_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -3743,7 +3743,7 @@ static tng_function_status tng_trajectory_mapping_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
offset += sizeof(int64_t);
@@ -3758,7 +3758,7 @@ static tng_function_status tng_trajectory_mapping_block_write
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3766,7 +3766,7 @@ static tng_function_status tng_trajectory_mapping_block_write
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Could not write all block data. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -3797,7 +3797,7 @@ static tng_function_status tng_particle_data_block_create
frame_set->n_particle_data_blocks);
if(!data)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_particle_data) *
frame_set->n_particle_data_blocks,
__FILE__, __LINE__);
@@ -3815,7 +3815,7 @@ static tng_function_status tng_particle_data_block_create
tng_data->n_particle_data_blocks);
if(!data)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_particle_data) *
tng_data->n_particle_data_blocks,
__FILE__, __LINE__);
@@ -3845,13 +3845,13 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
if(block->id != TNG_TRAJ_POSITIONS &&
block->id != TNG_TRAJ_VELOCITIES)
{
- printf("Can only compress positions and velocities with the"
+ printf("TNG library: Can only compress positions and velocities with the"
"TNG method.\n");
return(TNG_FAILURE);
}
if(type != TNG_FLOAT_DATA && type != TNG_DOUBLE_DATA)
{
- printf("Data type not supported.\n");
+ printf("TNG library: Data type not supported.\n");
return(TNG_FAILURE);
}
@@ -3993,7 +3993,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
}
else
{
- printf("Can only compress positions and velocities using TNG-MF1 algorithms.\n");
+ printf("TNG library: Can only compress positions and velocities using TNG-MF1 algorithms.\n");
return(TNG_FAILURE);
}
@@ -4006,7 +4006,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
{
free(block->block_contents);
block->block_contents = 0;
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4018,7 +4018,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data,
}
else
{
- printf("Error during TNG compression. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error during TNG compression. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -4041,13 +4041,13 @@ static tng_function_status tng_uncompress(tng_trajectory_t tng_data,
if(block->id != TNG_TRAJ_POSITIONS &&
block->id != TNG_TRAJ_VELOCITIES)
{
- printf("Can only uncompress positions and velocities with the"
+ printf("TNG library: Can only uncompress positions and velocities with the"
"TNG method.\n");
return(TNG_FAILURE);
}
if(type != TNG_FLOAT_DATA && type != TNG_DOUBLE_DATA)
{
- printf("Data type not supported.\n");
+ printf("TNG library: Data type not supported.\n");
return(TNG_FAILURE);
}
@@ -4056,7 +4056,7 @@ static tng_function_status tng_uncompress(tng_trajectory_t tng_data,
f_dest = malloc(uncompressed_len);
if(!f_dest)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
uncompressed_len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4068,7 +4068,7 @@ static tng_function_status tng_uncompress(tng_trajectory_t tng_data,
d_dest = malloc(uncompressed_len);
if(!d_dest)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
uncompressed_len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4077,7 +4077,7 @@ static tng_function_status tng_uncompress(tng_trajectory_t tng_data,
if(result == 1)
{
- printf("Cannot uncompress TNG compressed block.\n");
+ printf("TNG library: Cannot uncompress TNG compressed block.\n");
return(TNG_FAILURE);
}
@@ -4099,7 +4099,7 @@ static tng_function_status tng_uncompress(tng_trajectory_t tng_data,
{
free(f_dest);
}
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4145,13 +4145,13 @@ static tng_function_status tng_gzip_compress(tng_trajectory_t tng_data,
free(dest);
if(stat == (unsigned long)Z_MEM_ERROR)
{
- printf("Not enough memory. ");
+ printf("TNG library: Not enough memory. ");
}
else if(stat == (unsigned long)Z_BUF_ERROR)
{
- printf("Destination buffer too small. ");
+ printf("TNG library: Destination buffer too small. ");
}
- printf("Error gzipping data. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error gzipping data. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -4165,7 +4165,7 @@ static tng_function_status tng_gzip_compress(tng_trajectory_t tng_data,
free(block->block_contents);
free(dest);
block->block_contents = 0;
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4202,17 +4202,17 @@ static tng_function_status tng_gzip_uncompress(tng_trajectory_t tng_data,
free(dest);
if(stat == (unsigned long)Z_MEM_ERROR)
{
- printf("Not enough memory. ");
+ printf("TNG library: Not enough memory. ");
}
else if(stat == (unsigned long)Z_BUF_ERROR)
{
- printf("Destination buffer too small. ");
+ printf("TNG library: Destination buffer too small. ");
}
else if(stat == (unsigned long)Z_DATA_ERROR)
{
- printf("Data corrupt. ");
+ printf("TNG library: Data corrupt. ");
}
- printf("Error uncompressing gzipped data. %s: %d\n", __FILE__,
+ printf("TNG library: Error uncompressing gzipped data. %s: %d\n", __FILE__,
__LINE__);
return(TNG_FAILURE);
}
@@ -4226,7 +4226,7 @@ static tng_function_status tng_gzip_uncompress(tng_trajectory_t tng_data,
free(block->block_contents);
block->block_contents = 0;
free(dest);
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4303,7 +4303,7 @@ static tng_function_status tng_allocate_particle_data_mem
n_particles);
if(!data->strings[i])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values *) * n_particles,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -4314,7 +4314,7 @@ static tng_function_status tng_allocate_particle_data_mem
n_values_per_frame);
if(!data->strings[i][j])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values) * n_values_per_frame,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -4346,7 +4346,7 @@ static tng_function_status tng_allocate_particle_data_mem
n_particles * n_values_per_frame);
if(!values)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
size * frame_alloc *
n_particles * n_values_per_frame,
__FILE__, __LINE__);
@@ -4556,7 +4556,7 @@ static tng_function_status tng_particle_data_read
if(tng_particle_data_block_create(tng_data, block_type_flag) !=
TNG_SUCCESS)
{
- printf("Cannot create particle data block. %s: %d\n",
+ printf("TNG library: Cannot create particle data block. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4575,7 +4575,7 @@ static tng_function_status tng_particle_data_read
data->block_name = malloc(strlen(block->name) + 1);
if(!data->block_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
(int)strlen(block->name)+1, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4610,30 +4610,30 @@ static tng_function_status tng_particle_data_read
switch(codec_id)
{
case TNG_XTC_COMPRESSION:
- printf("XTC compression not implemented yet.\n");
+ printf("TNG library: XTC compression not implemented yet.\n");
break;
case TNG_TNG_COMPRESSION:
if(tng_uncompress(tng_data, block, datatype,
block->block_contents + *offset,
data_size) != TNG_SUCCESS)
{
- printf("Could not read tng compressed block data. %s: %d\n",
+ printf("TNG library: Could not read tng compressed block data. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
break;
#ifdef USE_ZLIB
case TNG_GZIP_COMPRESSION:
-/* printf("Before uncompression: %"PRId64"\n", block->block_contents_size); */
+/* printf("TNG library: Before uncompression: %"PRId64"\n", block->block_contents_size); */
if(tng_gzip_uncompress(tng_data, block,
block->block_contents + *offset,
data_size) != TNG_SUCCESS)
{
- printf("Could not read gzipped block data. %s: %d\n", __FILE__,
+ printf("TNG library: Could not read gzipped block data. %s: %d\n", __FILE__,
__LINE__);
return(TNG_CRITICAL);
}
-/* printf("After uncompression: %"PRId64"\n", block->block_contents_size); */
+/* printf("TNG library: After uncompression: %"PRId64"\n", block->block_contents_size); */
break;
#endif
}
@@ -4648,7 +4648,7 @@ static tng_function_status tng_particle_data_read
tot_n_particles, n_values) !=
TNG_SUCCESS)
{
- printf("Cannot allocate memory for particle data. %s: %d\n",
+ printf("TNG library: Cannot allocate memory for particle data. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4676,7 +4676,7 @@ static tng_function_status tng_particle_data_read
second_dim_values[k] = malloc(len);
if(!second_dim_values[k])
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4704,7 +4704,7 @@ static tng_function_status tng_particle_data_read
(int32_t *)((char *)data->values + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -4720,7 +4720,7 @@ static tng_function_status tng_particle_data_read
(int64_t *)((char *)data->values + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -4816,7 +4816,7 @@ static tng_function_status tng_particle_data_block_write
temp_name = realloc(block->name, len);
if(!temp_name)
{
- printf("Cannot allocate memory (%ld bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%ld bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(block->name);
block->name = 0;
@@ -4922,7 +4922,7 @@ static tng_function_status tng_particle_data_block_write
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -4956,7 +4956,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -4970,7 +4970,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -4986,7 +4986,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5006,7 +5006,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5020,7 +5020,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5036,7 +5036,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5049,7 +5049,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5095,7 +5095,7 @@ static tng_function_status tng_particle_data_block_write
(int32_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5115,7 +5115,7 @@ static tng_function_status tng_particle_data_block_write
(int32_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5131,7 +5131,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5148,7 +5148,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5168,7 +5168,7 @@ static tng_function_status tng_particle_data_block_write
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5192,18 +5192,18 @@ static tng_function_status tng_particle_data_block_write
switch(data->codec_id)
{
case TNG_XTC_COMPRESSION:
- printf("XTC compression not implemented yet.\n");
+ printf("TNG library: XTC compression not implemented yet.\n");
data->codec_id = TNG_UNCOMPRESSED;
break;
case TNG_TNG_COMPRESSION:
-/* printf("TEST: frame_step: %"PRId64", n_particles: %"PRId64", block_contents_size: %"PRId64", start_pos: %"PRId64"\n",
+/* printf("TNG library: TEST: frame_step: %"PRId64", n_particles: %"PRId64", block_contents_size: %"PRId64", start_pos: %"PRId64"\n",
frame_step, n_particles, block->block_contents_size, data_start_pos);*/
stat = tng_compress(tng_data, block, frame_step,
n_particles, data->datatype,
block->block_contents + data_start_pos);
if(stat != TNG_SUCCESS)
{
- printf("Could not write tng compressed block data. %s: %d\n",
+ printf("TNG library: Could not write tng compressed block data. %s: %d\n",
__FILE__, __LINE__);
if(stat == TNG_CRITICAL)
{
@@ -5220,13 +5220,13 @@ static tng_function_status tng_particle_data_block_write
break;
#ifdef USE_ZLIB
case TNG_GZIP_COMPRESSION:
- /* printf("Before compression: %"PRId64"\n", block->block_contents_size);*/
+ /* printf("TNG library: Before compression: %"PRId64"\n", block->block_contents_size);*/
stat = tng_gzip_compress(tng_data, block,
block->block_contents + data_start_pos,
block->block_contents_size - data_start_pos);
if(stat != TNG_SUCCESS)
{
- printf("Could not write gzipped block data. %s: %d\n", __FILE__,
+ printf("TNG library: Could not write gzipped block data. %s: %d\n", __FILE__,
__LINE__);
if(stat == TNG_CRITICAL)
{
@@ -5240,7 +5240,7 @@ static tng_function_status tng_particle_data_block_write
hash_mode);
return(stat);
}
- /* printf("After compression: %"PRId64"\n", block->block_contents_size);*/
+ /* printf("TNG library: After compression: %"PRId64"\n", block->block_contents_size);*/
break;
#endif
}
@@ -5248,7 +5248,7 @@ static tng_function_status tng_particle_data_block_write
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5256,7 +5256,7 @@ static tng_function_status tng_particle_data_block_write
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n", __FILE__,
+ printf("TNG library: Could not write all block data. %s: %d\n", __FILE__,
__LINE__);
return(TNG_CRITICAL);
}
@@ -5288,7 +5288,7 @@ static tng_function_status tng_data_block_create
frame_set->n_data_blocks);
if(!data)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_non_particle_data) * frame_set->n_data_blocks,
__FILE__, __LINE__);
free(frame_set->tr_data);
@@ -5304,7 +5304,7 @@ static tng_function_status tng_data_block_create
tng_data->n_data_blocks);
if(!data)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_non_particle_data) * tng_data->n_data_blocks,
__FILE__, __LINE__);
free(tng_data->non_tr_data);
@@ -5370,7 +5370,7 @@ static tng_function_status tng_allocate_data_mem
data->strings[i] = malloc(sizeof(char *) * n_values_per_frame);
if(!data->strings[i])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
n_values_per_frame,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -5401,7 +5401,7 @@ static tng_function_status tng_allocate_data_mem
n_values_per_frame);
if(!values)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
size * frame_alloc *
n_values_per_frame,
__FILE__, __LINE__);
@@ -5457,7 +5457,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
&tng_data->current_trajectory_frame_set;
char block_type_flag;
-/* printf("%s\n", block->name);*/
+/* printf("TNG library: %s\n", block->name);*/
switch(datatype)
{
@@ -5490,7 +5490,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
if(tng_data_block_create(tng_data, block_type_flag) !=
TNG_SUCCESS)
{
- printf("Cannot create particle data block. %s: %d\n",
+ printf("TNG library: Cannot create particle data block. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5507,7 +5507,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
data->block_name = malloc(strlen(block->name) + 1);
if(!data->block_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
(int)strlen(block->name)+1, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5532,16 +5532,16 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
#ifdef USE_ZLIB
case TNG_GZIP_COMPRESSION:
data_size = n_frames_div * size * n_values;
- /* printf("Before compression: %"PRId64"\n", block->block_contents_size); */
+ /* printf("TNG library: Before compression: %"PRId64"\n", block->block_contents_size); */
if(tng_gzip_uncompress(tng_data, block,
block->block_contents + *offset,
data_size) != TNG_SUCCESS)
{
- printf("Could not read gzipped block data. %s: %d\n", __FILE__,
+ printf("TNG library: Could not read gzipped block data. %s: %d\n", __FILE__,
__LINE__);
return(TNG_CRITICAL);
}
- /* printf("After compression: %"PRId64"\n", block->block_contents_size); */
+ /* printf("TNG library: After compression: %"PRId64"\n", block->block_contents_size); */
break;
#endif
}
@@ -5555,7 +5555,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
n_values) !=
TNG_SUCCESS)
{
- printf("Cannot allocate memory for data. %s: %d\n",
+ printf("TNG library: Cannot allocate memory for data. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5578,7 +5578,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
data->strings[i][j] = malloc(len);
if(!data->strings[i][j])
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5603,7 +5603,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
(int32_t *)((char *)data->values + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5619,7 +5619,7 @@ static tng_function_status tng_data_read(tng_trajectory_t tng_data,
(int64_t *)((char *)data->values + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5713,7 +5713,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
temp_name = realloc(block->name, len);
if(!temp_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len+1,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len+1,
__FILE__, __LINE__);
free(block->name);
block->name = 0;
@@ -5794,7 +5794,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -5828,7 +5828,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5842,7 +5842,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5858,7 +5858,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5878,7 +5878,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5892,7 +5892,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)block->header_contents+offset)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5932,7 +5932,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int32_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5952,7 +5952,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int32_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5968,7 +5968,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -5985,7 +5985,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6005,7 +6005,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
(int64_t *)(block->block_contents + i))
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6030,13 +6030,13 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
{
#ifdef USE_ZLIB
case TNG_GZIP_COMPRESSION:
- /* printf("Before compression: %"PRId64"\n", block->block_contents_size); */
+ /* printf("TNG library: Before compression: %"PRId64"\n", block->block_contents_size); */
stat = tng_gzip_compress(tng_data, block,
block->block_contents + data_start_pos,
block->block_contents_size - data_start_pos);
if(stat != TNG_SUCCESS)
{
- printf("Could not write gzipped block data. %s: %d\n", __FILE__,
+ printf("TNG library: Could not write gzipped block data. %s: %d\n", __FILE__,
__LINE__);
if(stat == TNG_CRITICAL)
{
@@ -6045,14 +6045,14 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
data->codec_id = TNG_UNCOMPRESSED;
if(fabs(data->compression_multiplier - 1.0) > 0.00001)
{
- printf("Multiplier applied, but block was not compressed. Data will be wrong.\n");
- printf("The block might be completely corrupted.\n");
+ printf("TNG library: Multiplier applied, but block was not compressed. Data will be wrong.\n");
+ printf("TNG library: The block might be completely corrupted.\n");
/* FIXME: The data should be divided by the multiplier and the data that is only
* present in blocks containing compressed data (e.g. multiplier) must be
* removed */
}
}
- /* printf("After compression: %"PRId64"\n", block->block_contents_size); */
+ /* printf("TNG library: After compression: %"PRId64"\n", block->block_contents_size); */
break;
#endif
}
@@ -6060,7 +6060,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
if(tng_block_header_write(tng_data, block, hash_mode) != TNG_SUCCESS)
{
- printf("Cannot write header of file %s. %s: %d\n",
+ printf("TNG library: Cannot write header of file %s. %s: %d\n",
tng_data->output_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6068,7 +6068,7 @@ static tng_function_status tng_data_block_write(tng_trajectory_t tng_data,
if(fwrite(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) != 1)
{
- printf("Could not write all block data. %s: %d\n",
+ printf("TNG library: Could not write all block data. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6111,7 +6111,7 @@ static tng_function_status tng_data_block_contents_read
block->block_contents = malloc(block->block_contents_size);
if(!block->block_contents)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
block->block_contents_size, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6121,7 +6121,7 @@ static tng_function_status tng_data_block_contents_read
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->input_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6133,7 +6133,7 @@ static tng_function_status tng_data_block_contents_read
tng_md5_hash_match_verify(block, &same_hash);
if(same_hash != TNG_TRUE)
{
- printf("'%s' data block contents corrupt. Hashes do not match. %s: %d\n",
+ printf("TNG library: '%s' data block contents corrupt. Hashes do not match. %s: %d\n",
block->name, __FILE__, __LINE__);
/* return(TNG_FAILURE); */
}
@@ -6163,7 +6163,7 @@ static tng_function_status tng_data_block_contents_read
&n_values)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6177,7 +6177,7 @@ static tng_function_status tng_data_block_contents_read
&codec_id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6193,7 +6193,7 @@ static tng_function_status tng_data_block_contents_read
(int64_t *) &multiplier)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6216,7 +6216,7 @@ static tng_function_status tng_data_block_contents_read
&first_frame_with_data)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6230,7 +6230,7 @@ static tng_function_status tng_data_block_contents_read
&stride_length)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6260,7 +6260,7 @@ static tng_function_status tng_data_block_contents_read
&num_first_particle)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6274,7 +6274,7 @@ static tng_function_status tng_data_block_contents_read
&block_n_particles)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6327,7 +6327,7 @@ static tng_function_status tng_md5_hash_update(tng_trajectory_t tng_data,
if(fread(block->block_contents, block->block_contents_size, 1,
tng_data->output_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6357,7 +6357,7 @@ static tng_function_status tng_header_pointers_update
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6371,7 +6371,7 @@ static tng_function_status tng_header_pointers_update
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read general info header. %s: %d\n",
+ printf("TNG library: Cannot read general info header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6393,7 +6393,7 @@ static tng_function_status tng_header_pointers_update
&pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6412,7 +6412,7 @@ static tng_function_status tng_header_pointers_update
&pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6454,7 +6454,7 @@ static tng_function_status tng_frame_set_pointers_update
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6477,7 +6477,7 @@ static tng_function_status tng_frame_set_pointers_update
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame header. %s: %d\n",
+ printf("TNG library: Cannot read frame header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6497,7 +6497,7 @@ static tng_function_status tng_frame_set_pointers_update
&pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6527,7 +6527,7 @@ static tng_function_status tng_frame_set_pointers_update
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame set header. %s: %d\n",
+ printf("TNG library: Cannot read frame set header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6547,7 +6547,7 @@ static tng_function_status tng_frame_set_pointers_update
&pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6577,7 +6577,7 @@ static tng_function_status tng_frame_set_pointers_update
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame set header. %s: %d\n",
+ printf("TNG library: Cannot read frame set header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6597,7 +6597,7 @@ static tng_function_status tng_frame_set_pointers_update
&pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -6657,7 +6657,7 @@ static tng_function_status tng_frame_set_pointers_update
//
// if(tng_output_file_init(tng_data) != TNG_SUCCESS)
// {
-// printf("Cannot initialise destination file. %s: %d\n",
+// printf("TNG library: Cannot initialise destination file. %s: %d\n",
// __FILE__, __LINE__);
// return(TNG_CRITICAL);
// }
@@ -6672,7 +6672,7 @@ static tng_function_status tng_frame_set_pointers_update
// fseek(tng_data->output_file, pos, SEEK_SET);
// if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
// {
-// printf("Cannot read frame set header. %s: %d\n",
+// printf("TNG library: Cannot read frame set header. %s: %d\n",
// __FILE__, __LINE__);
// tng_data->input_file = temp;
// tng_block_destroy(&block);
@@ -6691,7 +6691,7 @@ static tng_function_status tng_frame_set_pointers_update
// {
// if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
// {
-// printf("Cannot read block header at pos %"PRId64". %s: %d\n", pos,
+// printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", pos,
// __FILE__, __LINE__);
// tng_data->input_file = temp;
// tng_block_destroy(&block);
@@ -6730,7 +6730,7 @@ static tng_function_status tng_frame_set_finalize
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6746,7 +6746,7 @@ static tng_function_status tng_frame_set_finalize
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame set header. %s: %d\n",
+ printf("TNG library: Cannot read frame set header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6780,7 +6780,7 @@ static tng_function_status tng_frame_set_finalize
{
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n", pos,
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", pos,
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -6829,7 +6829,7 @@ static tng_function_status tng_frame_set_finalize
// block->name = malloc(len);
// if(!block->name)
// {
-// printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+// printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
// __FILE__, __LINE__);
// return(TNG_CRITICAL);
// }
@@ -6851,7 +6851,7 @@ tng_function_status tng_atom_name_set(tng_trajectory_t tng_data,
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -6870,7 +6870,7 @@ tng_function_status tng_atom_name_set(tng_trajectory_t tng_data,
atom->name = malloc(len);
if(!atom->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6892,7 +6892,7 @@ tng_function_status tng_atom_type_set(tng_trajectory_t tng_data,
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -6911,7 +6911,7 @@ tng_function_status tng_atom_type_set(tng_trajectory_t tng_data,
atom->atom_type = malloc(len);
if(!atom->atom_type)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -6967,7 +6967,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7008,7 +7008,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_w_id_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7020,7 +7020,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_w_id_add
if(!new_molecules)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_molecule) * (tng_data->n_molecules + 1),
__FILE__, __LINE__);
free(tng_data->molecules);
@@ -7034,7 +7034,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_w_id_add
if(!new_molecule_cnt_list)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(int64_t) * (tng_data->n_molecules + 1),
__FILE__, __LINE__);
free(tng_data->molecule_cnt_list);
@@ -7059,7 +7059,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_w_id_add
if(tng_data->molecules[i].id == id)
{
stat = TNG_FAILURE;
- printf("Molecule ID already in use. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Molecule ID already in use. %s: %d\n", __FILE__, __LINE__);
break;
}
}
@@ -7083,7 +7083,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7103,7 +7103,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_name_set
molecule->name = malloc(len);
if(!molecule->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -7125,7 +7125,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7158,7 +7158,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_cnt_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7196,7 +7196,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_find
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7234,7 +7234,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_find
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7282,7 +7282,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7293,7 +7293,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add
if(!new_chains)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_chain) * (molecule->n_chains + 1),
__FILE__, __LINE__);
free(molecule->chains);
@@ -7317,7 +7317,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chain_w_id_add
if(molecule->chains[i].id == id)
{
stat = TNG_FAILURE;
- printf("Chain ID already in use. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Chain ID already in use. %s: %d\n", __FILE__, __LINE__);
break;
}
}
@@ -7343,7 +7343,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_bond_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7365,7 +7365,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_bond_add
if(!new_bonds)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_bond) * (molecule->n_bonds + 1),
__FILE__, __LINE__);
*bond = 0;
@@ -7398,7 +7398,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7417,7 +7417,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_name_set
chain->name = malloc(len);
if(!chain->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -7442,7 +7442,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_residue_find
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7491,7 +7491,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_residue_w_id_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7511,7 +7511,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_residue_w_id_add
if(!new_residues)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_residue) * (molecule->n_residues + 1),
__FILE__, __LINE__);
free(molecule->residues);
@@ -7563,7 +7563,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_residue_w_id_add
if(chain->residues[i].id == id)
{
stat = TNG_FAILURE;
- printf("Residue ID already in use. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Residue ID already in use. %s: %d\n", __FILE__, __LINE__);
break;
}
}
@@ -7587,7 +7587,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_name_set(tng_trajectory_t tng_
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7606,7 +7606,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_name_set(tng_trajectory_t tng_
residue->name = malloc(len);
if(!residue->name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -7645,7 +7645,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atom_w_id_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7661,7 +7661,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atom_w_id_add
if(!new_atoms)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_atom) * (molecule->n_atoms + 1),
__FILE__, __LINE__);
free(molecule->atoms);
@@ -7684,7 +7684,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atom_w_id_add
if(molecule->atoms[i].id == id)
{
stat = TNG_FAILURE;
- printf("Atom ID already in use. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Atom ID already in use. %s: %d\n", __FILE__, __LINE__);
break;
}
}
@@ -7792,7 +7792,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_name_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7838,7 +7838,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_id_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7881,7 +7881,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molsystem_bonds_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -7899,14 +7899,14 @@ tng_function_status DECLSPECDLLEXPORT tng_molsystem_bonds_get
*from_atoms = malloc(sizeof(int64_t) * (*n_bonds));
if(!*from_atoms)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(int64_t) * (*n_bonds), __FILE__, __LINE__);
return(TNG_CRITICAL);
}
*to_atoms = malloc(sizeof(int64_t) * (*n_bonds));
if(!*to_atoms)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(int64_t) * (*n_bonds), __FILE__, __LINE__);
free(*from_atoms);
*from_atoms = 0;
@@ -7950,7 +7950,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_name_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8003,7 +8003,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_name_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8055,7 +8055,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_id_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8102,7 +8102,7 @@ tng_function_status DECLSPECDLLEXPORT tng_global_residue_id_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8153,7 +8153,7 @@ tng_function_status DECLSPECDLLEXPORT tng_atom_name_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8202,7 +8202,7 @@ tng_function_status tng_atom_type_of_particle_nr_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8250,7 +8250,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -8266,7 +8266,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
num_first_particle < mapping->num_first_particle +
mapping->n_particles)
{
- printf("Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
if(num_first_particle + n_particles >=
@@ -8274,14 +8274,14 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
num_first_particle + n_particles <
mapping->num_first_particle + mapping->n_particles)
{
- printf("Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
if(mapping->num_first_particle >= num_first_particle &&
mapping->num_first_particle < num_first_particle +
n_particles)
{
- printf("Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
if(mapping->num_first_particle + mapping->n_particles >
@@ -8289,7 +8289,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
mapping->num_first_particle + mapping->n_particles <
num_first_particle + n_particles)
{
- printf("Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Particle mapping overlap. %s: %d\n", __FILE__, __LINE__);
return(TNG_FAILURE);
}
}
@@ -8301,7 +8301,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
if(!mapping)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(struct tng_particle_mapping)*frame_set->n_mapping_blocks,
__FILE__, __LINE__);
free(frame_set->mappings);
@@ -8316,7 +8316,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_mapping_add
frame_set->mappings[frame_set->n_mapping_blocks - 1].real_particle_numbers = malloc(sizeof(int64_t) * n_particles);
if(!frame_set->mappings[frame_set->n_mapping_blocks - 1].real_particle_numbers)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(int64_t) * n_particles, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -8338,7 +8338,7 @@ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init(tng_trajectory_t *tng_
*tng_data_p = malloc(sizeof(struct tng_trajectory));
if(!*tng_data_p)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_trajectory), __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -8366,7 +8366,7 @@ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init(tng_trajectory_t *tng_
seconds = time(0);
if ( seconds == -1)
{
- printf("Cannot get time. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot get time. %s: %d\n", __FILE__, __LINE__);
}
else
{
@@ -8868,7 +8868,7 @@ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init_from_src(tng_trajector
*dest_p = malloc(sizeof(struct tng_trajectory));
if(!*dest_p)
{
- printf("Cannot allocate memory (%lu bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%lu bytes). %s: %d\n",
sizeof(struct tng_trajectory), __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -8985,7 +8985,7 @@ tng_function_status DECLSPECDLLEXPORT tng_input_file_get(const tng_trajectory_t
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9010,7 +9010,7 @@ tng_function_status DECLSPECDLLEXPORT tng_input_file_set(tng_trajectory_t tng_da
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9030,7 +9030,7 @@ tng_function_status DECLSPECDLLEXPORT tng_input_file_set(tng_trajectory_t tng_da
temp = realloc(tng_data->input_file_path, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->input_file_path);
tng_data->input_file_path = 0;
@@ -9051,7 +9051,7 @@ tng_function_status tng_output_file_get(const tng_trajectory_t tng_data,
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9076,7 +9076,7 @@ tng_function_status DECLSPECDLLEXPORT tng_output_file_set(tng_trajectory_t tng_d
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9096,7 +9096,7 @@ tng_function_status DECLSPECDLLEXPORT tng_output_file_set(tng_trajectory_t tng_d
temp = realloc(tng_data->output_file_path, len);
if(!temp)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
free(tng_data->output_file_path);
tng_data->output_file_path = 0;
@@ -9119,7 +9119,7 @@ tng_function_status DECLSPECDLLEXPORT tng_output_file_endianness_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9201,7 +9201,7 @@ tng_function_status DECLSPECDLLEXPORT tng_output_file_endianness_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9272,7 +9272,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_program_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9296,7 +9296,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_program_name_set(tng_trajectory_
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9313,7 +9313,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_program_name_set(tng_trajectory_
tng_data->first_program_name = malloc(len);
if(!tng_data->first_program_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9333,7 +9333,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_program_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9358,7 +9358,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_program_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9375,7 +9375,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_program_name_set
tng_data->last_program_name = malloc(len);
if(!tng_data->last_program_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9395,7 +9395,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_user_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9420,7 +9420,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_user_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9439,7 +9439,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_user_name_set
tng_data->first_user_name = malloc(len);
if(!tng_data->first_user_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9459,7 +9459,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_user_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9484,7 +9484,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_user_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9503,7 +9503,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_user_name_set
tng_data->last_user_name = malloc(len);
if(!tng_data->last_user_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9523,7 +9523,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_computer_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9548,7 +9548,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_computer_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9567,7 +9567,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_computer_name_set
tng_data->first_computer_name = malloc(len);
if(!tng_data->first_computer_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9587,7 +9587,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_computer_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9612,7 +9612,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_computer_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9632,7 +9632,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_computer_name_set
tng_data->last_computer_name = malloc(len);
if(!tng_data->last_computer_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9652,7 +9652,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_signature_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9677,7 +9677,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_signature_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9697,7 +9697,7 @@ tng_function_status DECLSPECDLLEXPORT tng_first_signature_set
tng_data->first_pgp_signature = malloc(len);
if(!tng_data->first_pgp_signature)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9717,7 +9717,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_signature_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9742,7 +9742,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_signature_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9762,7 +9762,7 @@ tng_function_status DECLSPECDLLEXPORT tng_last_signature_set
tng_data->last_pgp_signature = malloc(len);
if(!tng_data->last_pgp_signature)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9782,7 +9782,7 @@ tng_function_status DECLSPECDLLEXPORT tng_forcefield_name_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9807,7 +9807,7 @@ tng_function_status DECLSPECDLLEXPORT tng_forcefield_name_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9826,7 +9826,7 @@ tng_function_status DECLSPECDLLEXPORT tng_forcefield_name_set
tng_data->forcefield_name = malloc(len);
if(!tng_data->forcefield_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n", len,
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n", len,
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -9846,7 +9846,7 @@ tng_function_status DECLSPECDLLEXPORT tng_medium_stride_length_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9865,7 +9865,7 @@ tng_function_status DECLSPECDLLEXPORT tng_medium_stride_length_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9888,7 +9888,7 @@ tng_function_status DECLSPECDLLEXPORT tng_long_stride_length_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9907,7 +9907,7 @@ tng_function_status DECLSPECDLLEXPORT tng_long_stride_length_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9930,7 +9930,7 @@ tng_function_status DECLSPECDLLEXPORT tng_time_per_frame_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9950,7 +9950,7 @@ tng_function_status DECLSPECDLLEXPORT tng_time_per_frame_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -9979,7 +9979,7 @@ tng_function_status DECLSPECDLLEXPORT tng_input_file_len_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10000,7 +10000,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frames_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10021,7 +10021,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frames_get
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
__FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_FAILURE);
@@ -10051,7 +10051,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_particles_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10078,7 +10078,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_molecules_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10124,7 +10124,7 @@ tng_function_status DECLSPECDLLEXPORT tng_distance_unit_exponential_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10143,7 +10143,7 @@ tng_function_status DECLSPECDLLEXPORT tng_distance_unit_exponential_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10162,7 +10162,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frames_per_frame_set_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10181,7 +10181,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frames_per_frame_set_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10205,7 +10205,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10223,7 +10223,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
__FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10254,7 +10254,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10285,7 +10285,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10315,7 +10315,7 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frame_sets_get
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10347,7 +10347,7 @@ tng_function_status DECLSPECDLLEXPORT tng_current_frame_set_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10370,7 +10370,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10419,7 +10419,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", file_pos,
__FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10453,7 +10453,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10488,7 +10488,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10523,7 +10523,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10558,7 +10558,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10593,7 +10593,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10627,7 +10627,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10662,7 +10662,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_nr_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10700,7 +10700,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -10755,7 +10755,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10794,7 +10794,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10831,7 +10831,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10866,7 +10866,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10903,7 +10903,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10940,7 +10940,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -10975,7 +10975,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -11011,7 +11011,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_of_frame_find
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -11048,7 +11048,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_next_frame_set_file_pos_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11069,7 +11069,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_prev_frame_set_file_pos_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11091,7 +11091,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_frame_range_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11184,7 +11184,7 @@ tng_function_status DECLSPECDLLEXPORT tng_file_headers_read(tng_trajectory_t tng
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11240,7 +11240,7 @@ tng_function_status DECLSPECDLLEXPORT tng_file_headers_write(tng_trajectory_t tn
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11254,7 +11254,7 @@ tng_function_status DECLSPECDLLEXPORT tng_file_headers_write(tng_trajectory_t tn
if(tng_general_info_block_write(tng_data, hash_mode)
!= TNG_SUCCESS)
{
- printf("Error writing general info block of file %s. %s: %d\n",
+ printf("TNG library: Error writing general info block of file %s. %s: %d\n",
tng_data->input_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11262,7 +11262,7 @@ tng_function_status DECLSPECDLLEXPORT tng_file_headers_write(tng_trajectory_t tn
if(tng_molecules_block_write(tng_data, hash_mode)
!= TNG_SUCCESS)
{
- printf("Error writing atom names block of file %s. %s: %d\n",
+ printf("TNG library: Error writing atom names block of file %s. %s: %d\n",
tng_data->input_file_path, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11298,7 +11298,7 @@ tng_function_status DECLSPECDLLEXPORT tng_block_read_next(tng_trajectory_t tng_d
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11338,7 +11338,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_next(tng_trajectory_t t
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11379,7 +11379,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_next(tng_trajectory_t t
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL || block->id != TNG_TRAJECTORY_FRAME_SET)
{
- printf("Cannot read block header at pos %ld. %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %ld. %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -11411,7 +11411,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_read_next(tng_trajectory_t t
}
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %ld. %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %ld. %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
return(stat);
@@ -11440,7 +11440,7 @@ tng_function_status tng_frame_set_write(tng_trajectory_t tng_data,
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11538,7 +11538,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11607,7 +11607,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame header. %s: %d\n",
+ printf("TNG library: Cannot read frame header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -11622,7 +11622,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
sizeof(frame_set->medium_stride_prev_frame_set_file_pos),
1, tng_data->output_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
return(TNG_CRITICAL);
@@ -11634,7 +11634,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
&frame_set->medium_stride_prev_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -11663,7 +11663,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
{
- printf("Cannot read frame header. %s: %d\n",
+ printf("TNG library: Cannot read frame header. %s: %d\n",
__FILE__, __LINE__);
tng_data->input_file = temp;
tng_block_destroy(&block);
@@ -11681,7 +11681,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
sizeof(frame_set->long_stride_prev_frame_set_file_pos),
1, tng_data->output_file) == 0)
{
- printf("Cannot read block. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Cannot read block. %s: %d\n", __FILE__, __LINE__);
tng_data->input_file = temp;
return(TNG_CRITICAL);
}
@@ -11692,7 +11692,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_new
&frame_set->long_stride_prev_frame_set_file_pos)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -11742,7 +11742,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_with_time_new
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11766,7 +11766,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_set_first_frame_time_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11799,7 +11799,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_block_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11817,7 +11817,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_block_add
if(tng_data_block_create(tng_data, block_type_flag) !=
TNG_SUCCESS)
{
- printf("Cannot create data block. %s: %d\n",
+ printf("TNG library: Cannot create data block. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11834,7 +11834,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_block_add
data->block_name = malloc(strlen(block_name) + 1);
if(!data->block_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
(int)strlen(block_name)+1, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11873,7 +11873,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_block_add
n_values_per_frame) !=
TNG_SUCCESS)
{
- printf("Cannot allocate data memory. %s: %d\n",
+ printf("TNG library: Cannot allocate data memory. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11903,7 +11903,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_block_add
first_dim_values[j] = malloc(len);
if(!first_dim_values[j])
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11949,7 +11949,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -11967,7 +11967,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add
if(tng_particle_data_block_create(tng_data, block_type_flag) !=
TNG_SUCCESS)
{
- printf("Cannot create particle data block. %s: %d\n",
+ printf("TNG library: Cannot create particle data block. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -11986,7 +11986,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add
data->block_name = malloc(strlen(block_name) + 1);
if(!data->block_name)
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
(int)strlen(block_name)+1, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -12023,7 +12023,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add
n_values_per_frame) !=
TNG_SUCCESS)
{
- printf("Cannot allocate particle data memory. %s: %d\n",
+ printf("TNG library: Cannot allocate particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -12057,7 +12057,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_block_add
second_dim_values[k] = malloc(len);
if(!second_dim_values[k])
{
- printf("Cannot allocate memory (%d bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%d bytes). %s: %d\n",
len, __FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -12114,14 +12114,14 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -12190,7 +12190,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
/* Write the frame set to disk */
if(tng_frame_set_write(tng_data, hash_mode) != TNG_SUCCESS)
{
- printf("Error writing frame set. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error writing frame set. %s: %d\n", __FILE__, __LINE__);
return(TNG_CRITICAL);
}
}
@@ -12216,7 +12216,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
tng_data->input_file = temp;
@@ -12246,7 +12246,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
}
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
tng_data->input_file = temp;
@@ -12264,13 +12264,13 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&datatype, sizeof(datatype), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
if(fread(&dependency, sizeof(dependency), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12290,7 +12290,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&sparse_data, sizeof(sparse_data), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12298,7 +12298,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&data.n_values_per_frame, sizeof(data.n_values_per_frame), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12308,7 +12308,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
&data.n_values_per_frame)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12316,7 +12316,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&data.codec_id, sizeof(data.codec_id), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12326,7 +12326,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
&data.codec_id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12337,7 +12337,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
sizeof(data.compression_multiplier), 1, tng_data->input_file)
== 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12347,7 +12347,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
(int64_t *)&data.compression_multiplier)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12362,7 +12362,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&data.first_frame_with_data, sizeof(data.first_frame_with_data),
1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12372,7 +12372,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
&data.first_frame_with_data)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12380,7 +12380,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(fread(&data.stride_length, sizeof(data.stride_length),
1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12390,7 +12390,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
&data.stride_length)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12420,7 +12420,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
size = sizeof(double);
break;
default:
- printf("Cannot calculate writing locations. %s: %d.\n", __FILE__,
+ printf("TNG library: Cannot calculate writing locations. %s: %d.\n", __FILE__,
__LINE__);
tng_block_destroy(&block);
return(TNG_FAILURE);
@@ -12435,7 +12435,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
if(file_pos > contents_size)
{
- printf("Attempting to write outside the block. %s: %d\n", __FILE__,
+ printf("TNG library: Attempting to write outside the block. %s: %d\n", __FILE__,
__LINE__);
tng_block_destroy(&block);
return(TNG_FAILURE);
@@ -12456,7 +12456,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
(int64_t *)copy+i)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12475,7 +12475,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_data_write
(int32_t *)copy+i)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12538,14 +12538,14 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
if(tng_output_file_init(tng_data) != TNG_SUCCESS)
{
- printf("Cannot initialise destination file. %s: %d\n",
+ printf("TNG library: Cannot initialise destination file. %s: %d\n",
__FILE__, __LINE__);
return(TNG_CRITICAL);
}
@@ -12570,7 +12570,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
{
last_frame = frame_set->first_frame +
frame_set->n_frames - 1;
-/* printf("Frame %"PRId64" not found. Last frame: %"PRId64"\n", frame_nr,
+/* printf("TNG library: Frame %"PRId64" not found. Last frame: %"PRId64"\n", frame_nr,
last_frame); */
/* If the wanted frame would be in the frame set after the last
* frame set create a new frame set. */
@@ -12616,7 +12616,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
/* Write the frame set to disk */
if(tng_frame_set_write(tng_data, hash_mode) != TNG_SUCCESS)
{
- printf("Error writing frame set. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error writing frame set. %s: %d\n", __FILE__, __LINE__);
exit(1);
}
}
@@ -12643,7 +12643,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
stat = tng_block_header_read(tng_data, block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
tng_data->input_file = temp;
@@ -12703,7 +12703,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
}
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
tng_data->input_file = temp;
@@ -12744,7 +12744,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
}
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
tng_block_destroy(&block);
tng_data->input_file = temp;
@@ -12763,7 +12763,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&datatype, sizeof(datatype), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12772,7 +12772,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&dependency, sizeof(dependency), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12791,7 +12791,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&sparse_data, sizeof(sparse_data), 1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12799,7 +12799,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&data.n_values_per_frame, sizeof(data.n_values_per_frame), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12809,7 +12809,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&data.n_values_per_frame)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12817,7 +12817,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&data.codec_id, sizeof(data.codec_id), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12827,7 +12827,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&data.codec_id)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12838,7 +12838,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
sizeof(data.compression_multiplier), 1, tng_data->input_file)
== 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12849,7 +12849,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
(int64_t *)&data.compression_multiplier)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12865,7 +12865,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
sizeof(data.first_frame_with_data),
1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12875,7 +12875,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&data.first_frame_with_data)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12883,7 +12883,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&data.stride_length, sizeof(data.stride_length),
1, tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12893,7 +12893,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&data.stride_length)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12908,7 +12908,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&num_first_particle, sizeof(num_first_particle), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12918,7 +12918,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&num_first_particle)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12926,7 +12926,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(fread(&block_n_particles, sizeof(block_n_particles), 1,
tng_data->input_file) == 0)
{
- printf("Error reading file. %s: %d\n", __FILE__, __LINE__);
+ printf("TNG library: Error reading file. %s: %d\n", __FILE__, __LINE__);
tng_block_destroy(&block);
return(TNG_CRITICAL);
}
@@ -12936,7 +12936,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
&block_n_particles)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -12961,7 +12961,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
size = sizeof(double);
break;
default:
- printf("Cannot calculate writing locations. %s: %d.\n", __FILE__,
+ printf("TNG library: Cannot calculate writing locations. %s: %d.\n", __FILE__,
__LINE__);
tng_block_destroy(&block);
return(TNG_FAILURE);
@@ -12976,7 +12976,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
if(file_pos > contents_size)
{
- printf("Attempting to write outside the block. %s: %d\n", __FILE__,
+ printf("TNG library: Attempting to write outside the block. %s: %d\n", __FILE__,
__LINE__);
tng_block_destroy(&block);
return(TNG_FAILURE);
@@ -12997,7 +12997,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
(int64_t *) copy+i)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -13016,7 +13016,7 @@ tng_function_status DECLSPECDLLEXPORT tng_frame_particle_data_write
(int32_t *) copy+i)
!= TNG_SUCCESS)
{
- printf("Cannot swap byte order. %s: %d\n",
+ printf("TNG library: Cannot swap byte order. %s: %d\n",
__FILE__, __LINE__);
}
}
@@ -13073,7 +13073,7 @@ static tng_function_status tng_data_values_alloc
type);
if(stat != TNG_SUCCESS)
{
- printf("Cannot free particle data values. %s: %d\n",
+ printf("TNG library: Cannot free particle data values. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13081,7 +13081,7 @@ static tng_function_status tng_data_values_alloc
*values = malloc(sizeof(union data_values *) * n_frames);
if(!*values)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values **) * n_frames,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -13094,7 +13094,7 @@ static tng_function_status tng_data_values_alloc
n_values_per_frame);
if(!(*values)[i])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values) * n_values_per_frame,
__FILE__, __LINE__);
free(values);
@@ -13119,7 +13119,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_values_free
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13175,7 +13175,7 @@ static tng_function_status tng_particle_data_values_alloc
type);
if(stat != TNG_SUCCESS)
{
- printf("Cannot free particle data values. %s: %d\n",
+ printf("TNG library: Cannot free particle data values. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13183,7 +13183,7 @@ static tng_function_status tng_particle_data_values_alloc
*values = malloc(sizeof(union data_values **) * n_frames);
if(!*values)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values **) * n_frames,
__FILE__, __LINE__);
return(TNG_CRITICAL);
@@ -13196,7 +13196,7 @@ static tng_function_status tng_particle_data_values_alloc
n_particles);
if(!(*values)[i])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values *) * n_particles,
__FILE__, __LINE__);
free(*values);
@@ -13209,7 +13209,7 @@ static tng_function_status tng_particle_data_values_alloc
n_values_per_frame);
if(!(*values)[i][j])
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
sizeof(union data_values *) * n_particles,
__FILE__, __LINE__);
tng_particle_data_values_free(tng_data, *values, n_frames,
@@ -13238,7 +13238,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_values_free
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13296,7 +13296,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13331,7 +13331,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -13436,7 +13436,7 @@ tng_function_status tng_data_vector_get(tng_trajectory_t tng_data,
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13471,7 +13471,7 @@ tng_function_status tng_data_vector_get(tng_trajectory_t tng_data,
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -13520,7 +13520,7 @@ tng_function_status tng_data_vector_get(tng_trajectory_t tng_data,
temp = realloc(*values, data_size);
if(!temp)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*values);
*values = 0;
@@ -13556,7 +13556,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_interval_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13599,7 +13599,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_interval_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -13620,7 +13620,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_interval_get
if(block_index < 0)
{
- printf("Could not find non-particle data block with id %"PRId64". %s: %d\n",
+ printf("TNG library: Could not find non-particle data block with id %"PRId64". %s: %d\n",
block_id, __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -13760,7 +13760,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_vector_interval_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -13800,7 +13800,7 @@ tng_function_status DECLSPECDLLEXPORT tng_data_vector_interval_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -13848,13 +13848,13 @@ tng_function_status DECLSPECDLLEXPORT tng_data_vector_interval_get
tot_n_frames / *stride_length;
data_size = n_frames_div * size * (*n_values_per_frame);
-/* printf("size: %d, n_frames_div: %"PRId64", data_size: %"PRId64"\n",
+/* printf("TNG library: size: %d, n_frames_div: %"PRId64", data_size: %"PRId64"\n",
size, n_frames_div, data_size);
*/
temp = realloc(*values, data_size);
if(!temp)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*values);
*values = 0;
@@ -13962,7 +13962,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14006,7 +14006,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -14166,7 +14166,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14201,7 +14201,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -14271,7 +14271,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_get
temp = realloc(*values, data_size);
if(!temp)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*values);
*values = 0;
@@ -14328,7 +14328,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_interval_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14370,7 +14370,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_interval_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -14391,7 +14391,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_interval_get
if(block_index < 0)
{
- printf("Could not find particle data block with id %"PRId64". %s: %d\n",
+ printf("TNG library: Could not find particle data block with id %"PRId64". %s: %d\n",
block_id, __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -14567,7 +14567,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_interval_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14607,7 +14607,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_interval_get
tng_block_destroy(&block);
if(stat == TNG_CRITICAL)
{
- printf("Cannot read block header at pos %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot read block header at pos %"PRId64". %s: %d\n",
file_pos, __FILE__, __LINE__);
return(stat);
}
@@ -14660,7 +14660,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_interval_get
temp = realloc(*values, data_size);
if(!temp)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*values);
*values = 0;
@@ -14689,7 +14689,7 @@ tng_function_status DECLSPECDLLEXPORT tng_particle_data_vector_interval_get
last_frame_pos / *stride_length;
n_frames_div_2 = tng_max_i64(1, n_frames_div_2 + 1);
-/* printf("current_frame_pos: %"PRId64", n_frames_div: %"PRId64", n_frames_div_2: %"PRId64"\n",
+/* printf("TNG library: current_frame_pos: %"PRId64", n_frames_div: %"PRId64", n_frames_div_2: %"PRId64"\n",
current_frame_pos, n_frames_div, n_frames_div_2);
*/
memcpy(*values, (char *)current_values + n_frames_div * frame_size,
@@ -14763,7 +14763,7 @@ tng_function_status DECLSPECDLLEXPORT tng_time_get_str
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14819,7 +14819,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_close
if(tng_data_p == 0)
{
- printf("Empty pointer to trajectory when attempting to close. %s: %d\n",
+ printf("TNG library: Empty pointer to trajectory when attempting to close. %s: %d\n",
__FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -14853,7 +14853,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_time_of_frame_get
stat = tng_frame_set_of_frame_find(tng_data, frame_nr);
if(stat != TNG_SUCCESS)
{
- printf("Cannot find frame nr %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot find frame nr %"PRId64". %s: %d\n",
frame_nr, __FILE__, __LINE__);
return(stat);
}
@@ -14884,7 +14884,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -14896,7 +14896,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
temp_int = realloc(*molecule_cnt_list, data_size);
if(!temp_int)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*molecule_cnt_list);
*molecule_cnt_list = 0;
@@ -14911,7 +14911,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
temp_mol = realloc(*mols, data_size);
if(!temp_mol)
{
- printf("Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
+ printf("TNG library: Cannot allocate memory (%"PRId64" bytes). %s: %d\n",
data_size, __FILE__, __LINE__);
free(*mols);
*mols = 0;
@@ -14967,7 +14967,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_molecule_particles_get
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15259,14 +15259,14 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
if(i <= 0)
{
- printf("Cannot set writing frequency to %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot set writing frequency to %"PRId64". %s: %d\n",
i, __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -15278,7 +15278,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
stat = tng_frame_set_new(tng_data, 0, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15304,7 +15304,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15315,7 +15315,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15335,7 +15335,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
i, compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15345,7 +15345,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_set
i, n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15377,14 +15377,14 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
if(i <= 0)
{
- printf("Cannot set writing frequency to %"PRId64". %s: %d\n",
+ printf("TNG library: Cannot set writing frequency to %"PRId64". %s: %d\n",
i, __FILE__, __LINE__);
return(TNG_FAILURE);
}
@@ -15396,7 +15396,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
stat = tng_frame_set_new(tng_data, 0, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15422,7 +15422,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15433,7 +15433,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15453,7 +15453,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
i, compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15463,7 +15463,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_interval_double_set
i, n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15486,7 +15486,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write_frequency_set
const char particle_dependency,
const char compression)
{
- printf("Using obsolete function tng_util_generic_write_frequency_set(). "
+ printf("TNG library: Using obsolete function tng_util_generic_write_frequency_set(). "
"See documentation. %s: %d", __FILE__, __LINE__);
return(tng_util_generic_write_interval_set(tng_data, i, n_values_per_frame,
block_id, block_name,
@@ -15519,7 +15519,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_pos_write_frequency_set
(tng_trajectory_t tng_data,
const int64_t i)
{
- printf("Using obsolete function tng_util_pos_write_frequency_set(). "
+ printf("TNG library: Using obsolete function tng_util_pos_write_frequency_set(). "
"See documentation. %s: %d", __FILE__, __LINE__);
return(tng_util_pos_write_interval_set(tng_data, i));
}
@@ -15550,7 +15550,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_vel_write_frequency_set
(tng_trajectory_t tng_data,
const int64_t i)
{
- printf("Using obsolete function tng_util_vel_write_frequency_set(). "
+ printf("TNG library: Using obsolete function tng_util_vel_write_frequency_set(). "
"See documentation. %s: %d", __FILE__, __LINE__);
return(tng_util_vel_write_interval_set(tng_data, i));
}
@@ -15581,7 +15581,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_force_write_frequency_set
(tng_trajectory_t tng_data,
const int64_t i)
{
- printf("Using obsolete function tng_util_force_write_frequency_set(). "
+ printf("TNG library: Using obsolete function tng_util_force_write_frequency_set(). "
"See documentation. %s: %d", __FILE__, __LINE__);
return(tng_util_force_write_interval_set(tng_data, i));
}
@@ -15612,7 +15612,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write_frequency_set
(tng_trajectory_t tng_data,
const int64_t i)
{
- printf("Using obsolete function tng_util_box_shape_write_frequency_set(). "
+ printf("TNG library: Using obsolete function tng_util_box_shape_write_frequency_set(). "
"See documentation. %s: %d", __FILE__, __LINE__);
return(tng_util_box_shape_write_interval_set(tng_data, i));
}
@@ -15637,7 +15637,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15663,7 +15663,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
stat = tng_frame_set_new(tng_data, 0, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15677,7 +15677,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
stat = tng_frame_set_write(tng_data, TNG_USE_HASH);
if(stat != TNG_SUCCESS)
{
- printf("Cannot write frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot write frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15685,7 +15685,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
frame_set->n_frames, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15711,7 +15711,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15730,7 +15730,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15762,7 +15762,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
stride_length, compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15780,7 +15780,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_write
stride_length, n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15825,7 +15825,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
stat = tng_check_trajectory_container(tng_data);
if(stat != TNG_SUCCESS)
{
- printf("Trajectory container not properly setup. %s: %d\n",
+ printf("TNG library: Trajectory container not properly setup. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15851,7 +15851,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
stat = tng_frame_set_new(tng_data, 0, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15865,7 +15865,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
stat = tng_frame_set_write(tng_data, TNG_USE_HASH);
if(stat != TNG_SUCCESS)
{
- printf("Cannot write frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot write frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15873,7 +15873,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
frame_set->n_frames, n_frames);
if(stat != TNG_SUCCESS)
{
- printf("Cannot create frame set. %s: %d\n", __FILE__,
+ printf("TNG library: Cannot create frame set. %s: %d\n", __FILE__,
__LINE__);
return(stat);
}
@@ -15899,7 +15899,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15918,7 +15918,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
@@ -15950,7 +15950,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
stride_length, compression, 0);
if(stat != TNG_SUCCESS)
{
- printf("Error %s adding data block. %s: %d\n", block_name,
+ printf("TNG library: Error %s adding data block. %s: %d\n", block_name,
__FILE__, __LINE__);
return(stat);
}
@@ -15968,7 +15968,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_generic_double_write
stride_length, n_values_per_frame);
if(stat != TNG_SUCCESS)
{
- printf("Error allocating particle data memory. %s: %d\n",
+ printf("TNG library: Error allocating particle data memory. %s: %d\n",
__FILE__, __LINE__);
return(stat);
}
contact: Jan Huwald // Impressum