Dual-purpose steam generator