Commit afdf5f69 authored by iker_martin's avatar iker_martin
Browse files

Null checking when extracting data from MaM storage

parent 00759da4
......@@ -431,8 +431,8 @@ void MAM_Data_get_pointer(void **data, size_t index, size_t *total_qty, MPI_Data
}
*data = data_struct->arrays[index];
*total_qty = data_struct->qty[index];
*type = data_struct->types[index];
if(total_qty != NULL) *total_qty = data_struct->qty[index];
if(type != NULL) *type = data_struct->types[index];
//get_block_dist(qty, mall->myId, mall->numP, &dist_data); //FIXME Asegurar que numP es correcto
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment