Skip to content

Commit

Permalink
prevent div-by-zero, use same leading dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Nov 14, 2022
1 parent 56b07a3 commit 7a09c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ref_gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ REF_FCN static REF_STATUS ref_gather_node_tec_part(REF_NODE ref_node,
chunk = (REF_INT)(nnode / ref_mpi_n(ref_mpi) + 1);
chunk = MAX(chunk, 100000);
chunk = MIN(chunk, ref_mpi_reduce_chunk_limit(
ref_mpi, ldim * (REF_INT)sizeof(REF_DBL)));
ref_mpi, dim * (REF_INT)sizeof(REF_DBL)));

ref_malloc(local_xyzm, dim * chunk, REF_DBL);
ref_malloc(xyzm, dim * chunk, REF_DBL);
Expand Down

0 comments on commit 7a09c4e

Please sign in to comment.