Commit 2fe1d1b9 authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #697 from andeplane/fix_heat_bug

Avoid checking region when not specified
parents b1b4a52b 19eb5d38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,7 @@ void FixHeat::init()
  }

  // check for rigid bodies in region (done here for performance reasons)
  if (modify->check_rigid_region_overlap(groupbit,domain->regions[iregion]))
  if (iregion >= 0 && modify->check_rigid_region_overlap(groupbit,domain->regions[iregion]))
    error->warning(FLERR,"Cannot apply fix heat to atoms in rigid bodies");

  // cannot have 0 atoms in group