Boundary condition enforcing methods for smoothed particle hydrodynamics