A flexible coupled ocean-atmosphere general circulation model