Abstract A spectral element model is built for the shallow water equations in complex geometry. It is proved to be an efficient computational model in solving oceanic problems. In particular, the equatorial Rossby modon's reflection process is simulated.