Loop only within the bounds of physical domain in write_log