Test of a lateral boundary relaxation scheme in a barotropic model