...
 
Commits (2)
  • Dominic Kempf's avatar
    [bugfix] Use correct MPI type · 05662133
    Dominic Kempf authored
    This was revealed by the address sanitizer when debugging an unrelated issue.
    05662133
  • Ole Klein's avatar
    [!5] [bugfix] Use correct MPI type · a500b8f9
    Ole Klein authored
    Merge branch 'bugfix/address-sanitizer' into 'master'
    
    ref:oklein/dune-randomfield This was revealed by the address sanitizer when
    debugging an unrelated issue.
    
    See merge request [!5]
    
      [!5]: gitlab.dune-project.org/oklein/dune-randomfield/merge_requests/5
    a500b8f9
......@@ -279,9 +279,9 @@ namespace Dune {
}
int small, negative, smallNegative;
RF smallest;
MPI_Allreduce(&mySmall, &small, 1,MPI_DOUBLE,MPI_SUM,(*traits).comm);
MPI_Allreduce(&myNegative, &negative, 1,MPI_DOUBLE,MPI_SUM,(*traits).comm);
MPI_Allreduce(&mySmallNegative,&smallNegative,1,MPI_DOUBLE,MPI_SUM,(*traits).comm);
MPI_Allreduce(&mySmall, &small, 1,MPI_INT,MPI_SUM,(*traits).comm);
MPI_Allreduce(&myNegative, &negative, 1,MPI_INT,MPI_SUM,(*traits).comm);
MPI_Allreduce(&mySmallNegative,&smallNegative,1,MPI_INT,MPI_SUM,(*traits).comm);
MPI_Allreduce(&mySmallest, &smallest, 1,MPI_DOUBLE,MPI_MIN,(*traits).comm);
if ((*traits).verbose && rank == 0)
......