Matsya Purana — Śrāddha Procedure: Types
अग्नीषोमयमाभ्यां तु कुर्यादाप्यायनं बुधः दक्षिणाग्नौ प्रतीते वा य एकाग्निर्द्विजोत्तमः //
agnīṣomayamābhyāṃ tu kuryādāpyāyanaṃ budhaḥ dakṣiṇāgnau pratīte vā ya ekāgnirdvijottamaḥ //
A wise man should perform the rite of replenishment (āpyāyana) with invocations to Agni, Soma, and Yama. Or, if the southern fire (dakṣiṇāgni) has gone out, then the best of twice-born—who maintains a single sacred fire—should perform it accordingly.
This verse does not address pralaya; it focuses on dharma in the form of ritual maintenance—specifically how to restore or strengthen sacred-fire practice through āpyāyana.
It aligns with householder (gṛhastha) duties: maintaining the sacred fires and performing corrective rites if a ritual fire—especially the dakṣiṇāgni—has been extinguished, preserving continuity of daily obligations.
Ritually, it prescribes āpyāyana using invocations to Agni, Soma, and Yama, and notes the procedure relevant when the dakṣiṇāgni goes out—important for correct fire-altar/fire-house practice rather than temple architecture.