Topographic control of basin and channel flows: the role of the bottom pressure torques and friction