A finite element model for the ocean circulation driven by wind and atmospheric heat flux