How to deal with Ocean surface inside ships?

Is there an easy way, like using a volume to cull the Ocean mesh, to avoid the Ocean inside a ship’s interior?

Related post

why not simply set the ocean to hidden when inside of the ship?