End Boundary condition implemented

Boundary condition where if the last value is a wild point it is
replaced by previous good value.