The compact scheme is used to overcome such a weakness by connecting the
derivative at the grid with that at the two neighboring grids, e.g.,
for the fourth-order scheme, and
for the sixth-order scheme. The parameters are determined by requiring the
minimum error (Chang and Shirer, 1985).