Energy and enstrophy cascades in numerical models