There has been growing media speculation in recent days that Mr. Rowhani would quit to allow President-elect Mahmoud Ahmadinejad to fill the position .