A generalized eastern boundary condition of no net zonal flux is applied to a continuously stratified model of the ideal fluid thermocline. Assuming that vertical exchange of water masses at the eastern boundary can be realized by the effect of mixing, water particles can move into or out of the eastern boundary in the form of vertical modes of no net zonal flux. For a purely wind‐driven model, a simple mode with the upper layer water moving into the eastern boundary and the lower layer water coming back into the interior is consistent with the assumption that vertical velocity is everywhere nonpositive within the subtropical interior. The stratification at the eastern boundary is an inseparable part of the global dynamics of the subtropical gyre and thus cannot be specified a priori. In fact, the eastern boundary stratification should be determined as part of a solution. One numerical example shows that relaxing the strict no‐zonal‐flux eastern boundary condition releases the nonphysical constraint over the upper surface density gradient near the intergyre boundary and gives rise to sloping isopycnals in the upper ocean and a vast zone of the eastern boundary ventilated thermocline in the southeastern basin. Therefore in contrast to the passive role played in the previous homogeneous ocean circulation models, the eastern boundary layer in a continuously stratified model plays an active role of setting up the global structure of the subtropical gyre. The dynamics of the eastern boundary layer which can transport the vertical mass exchange remains an issue for further study.