I think much more info is needed up front, starting with, but not limited to the "casting material" and beaucoup pictures of the porosity defects in question.
Is the requirement a cosmetic repair, sealing against through-the-wall leakage, or a structurally sound repair?
Do I interpret correctly that your intended weld repair is "autogenously" welding (simply remelting) the area that is porous?
Generally serious weld repairs require excavating the bad stuff.
A nice high chrome abrasion resistant iron may crack happily if nearly any weld repair is attempted.
Fancy cast irons reverse Alchemically turn into Lesser csst irons when welded, often with a return to such poor ductility that HAZ cracking is likely to result unless stretchy bronze fillers or expensive, stretchy nickel based fillers and heroic measures to reduce thermal stresses upon cooling are practiced.