diff --git a/src/fix_heat.cpp b/src/fix_heat.cpp index 19f7aea004..c4a46939d6 100644 --- a/src/fix_heat.cpp +++ b/src/fix_heat.cpp @@ -89,7 +89,7 @@ void FixHeat::end_of_step() Region *region = NULL; if (iregion >= 0) region = domain->regions[iregion]; - if (region < 0) { + if (iregion < 0) { heat = heat_input*nevery*update->dt*force->ftm2v; ke = group->ke(igroup)*force->ftm2v; group->vcm(igroup,masstotal,vcm);