If you set to subcatchment total area to #D flag, then it changes to the polygon area.

SET $area_store=total_area, $area_store_flag=total_area_flag;
SET total_area_flag="#D";
SET...