Added fg_comm, completed calculate_dt & calculate_fg, communicate residual in sor