Skip to content
Snippets Groups Projects
Commit 5bbe6169 authored by Danny Auble's avatar Danny Auble
Browse files

BLUEGENE - Make function return error if something bad happened.

parent 2d426cf6
No related branches found
No related tags found
No related merge requests found
......@@ -1489,10 +1489,11 @@ extern bitstr_t *ba_create_ba_mp_cnode_bitmap(bg_record_t *bg_record)
nc_start = ionode_num * (int)bg_conf->nc_ratio;
nc_end = nc_start + (int)bg_conf->nc_ratio;
for (nc_num = nc_start; nc_num < nc_end; nc_num++)
ba_node_map_set_range(cnode_bitmap,
g_nc_coords[nc_num].start,
g_nc_coords[nc_num].end,
ba_mp_geo_system);
/* this should always be true */
(void)ba_node_map_set_range(cnode_bitmap,
g_nc_coords[nc_num].start,
g_nc_coords[nc_num].end,
ba_mp_geo_system);
}
if (ba_debug_flags & DEBUG_FLAG_BG_ALGO_DEEP)
......
......@@ -1278,14 +1278,15 @@ extern void ba_node_map_set(bitstr_t *node_bitmap, uint16_t *full_offset,
* IN end_offset - N-dimension zero-origin offset to start setting at
* IN my_geo_system - system geometry specification
*/
extern void ba_node_map_set_range(bitstr_t *node_bitmap,
int *start_offset, int *end_offset,
ba_geo_system_t *my_geo_system)
extern int ba_node_map_set_range(bitstr_t *node_bitmap,
int *start_offset, int *end_offset,
ba_geo_system_t *my_geo_system)
{
uint16_t coords[HIGHEST_DIMENSIONS] = {};
_ba_node_map_set_range_internal(0, coords, start_offset, end_offset,
node_bitmap, my_geo_system);
return _ba_node_map_set_range_internal(
0, coords, start_offset, end_offset,
node_bitmap, my_geo_system);
}
/*
......
......@@ -308,9 +308,9 @@ extern void ba_node_map_set(bitstr_t *node_bitmap, uint16_t *full_offset,
* IN end_offset - N-dimension zero-origin offset to start setting at
* IN my_geo_system - system geometry specification
*/
extern void ba_node_map_set_range(bitstr_t *node_bitmap,
int *start_offset, int *end_offset,
ba_geo_system_t *my_geo_system);
extern int ba_node_map_set_range(bitstr_t *node_bitmap,
int *start_offset, int *end_offset,
ba_geo_system_t *my_geo_system);
/*
* Return the contents of the specified position in the bitmap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment