Modeling dissipation of solitary waves in the ocean