Unverified Commit 48ab70f9 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid segfault when using compute_scalar() on the initial step and no scaling has yet been done.

parent 5eccaecf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -300,6 +300,7 @@ double FixHeat::compute_scalar()
{
  double average_scale = scale;
  if (hstyle == ATOM) {
    if (!vscale) return 1.0;
    double scale_sum = 0.0;
    int ncount = 0;
    int *mask = atom->mask;