Skip to content

Commit

Permalink
valgrind warning: uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wkliao committed Dec 7, 2024
1 parent 00f081f commit bbc0d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cases/report_timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ int print_timing_WR(e3sm_io_config *cfg,
+ decom->max_nreqs[i] * sizeof(int); /* D*.lengths */
sum_decomp_varlen += vlen;
}
sum_decomp_varlen *= cfg->sub_nprocs;
if (cfg->sub_comm != MPI_COMM_NULL)
sum_decomp_varlen *= cfg->sub_nprocs;
if (cfg->strategy == blob && cfg->api != adios && cfg->sub_rank > 0)
sum_decomp_varlen = 0;
/* sum_decomp_varlen is the size of all decomposition variables defined in
Expand Down
1 change: 1 addition & 0 deletions src/e3sm_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ int main (int argc, char **argv) {
decom.disps[i] = NULL;
decom.raw_offsets[i] = NULL;
decom.w_starts[i] = NULL;
decom.max_nreqs[i] = 0;
}
ffreq = 1;

Expand Down

0 comments on commit bbc0d0c

Please sign in to comment.