Merge pull request #697 from andeplane/fix_heat_bug
Avoid checking region when not specified
This commit is contained in:
@ -127,7 +127,7 @@ void FixHeat::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check for rigid bodies in region (done here for performance reasons)
|
// 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");
|
error->warning(FLERR,"Cannot apply fix heat to atoms in rigid bodies");
|
||||||
|
|
||||||
// cannot have 0 atoms in group
|
// cannot have 0 atoms in group
|
||||||
|
|||||||
Reference in New Issue
Block a user