A high resolution spectral model for flow in complex terrain