* Modify some subroutines associated with applying the vertical boundary conditions
  to implement more complicated boundary conditions.