Skip to content
Snippets Groups Projects
Commit 19eb5d38 authored by Anders Hafreager's avatar Anders Hafreager
Browse files

Avoid checking region when not specified

parent f8f13d92
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ void FixHeat::init() ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment