A description of a three-dimensional coastal ocean circulation model