Parameterization of turbulence in the ocean and application of a 3d baroclinic model to the ría de Pontevedra