Commit c4c90a96 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid void return from non-void function

parent 5cb24632
Loading
Loading
Loading
Loading
+2 −0
Changes for src/REPLICA/fix_hyper_global.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -467,6 +467,8 @@ double FixHyperGlobal::compute_vector(int i)
  if (i == 8) return t_hyper;
  if (i == 9) return (double) nevent;
  if (i == 10) return (double) nevent_atom;

  return 0.0;
}

/* ----------------------------------------------------------------------
+2 −0
Changes for src/REPLICA/fix_hyper_local.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1378,6 +1378,8 @@ double FixHyperLocal::compute_vector(int i)
    MPI_Allreduce(&nnewbond,&allnew,1,MPI_INT,MPI_SUM,world);
    return (double) 0.5*allnew;
  }

  return 0.0;
}

/* ----------------------------------------------------------------------