Applications and limitations of potential flow codes for the wave making problem