Adaptive modeling for free-surface flows