MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_amr_frame.fpp.f90 File Reference

Contains module m_amr_frame. More...

Go to the source code of this file.

Modules

module  m_amr_frame
 Block-frame swap (fine grid state in/out of the shared solver).

Functions/Subroutines

impure subroutine, public m_amr_frame::s_amr_fine_enter ()
 Swap to the current fine block and load its solver frame amr_cons_br; paired with s_amr_fine_leave.
impure subroutine, public m_amr_frame::s_amr_fine_leave ()
 Store the solver frame back to the fine block and restore the coarse grid.
impure subroutine, public m_amr_frame::s_amr_swap_to_fine (widen)
 Swap the global grid state to the fine block. Must be paired with s_amr_restore_coarse.
impure subroutine m_amr_frame::s_amr_extend_ghost_coords (d, cb, cc, dd, ext, glb, gcb)
 Extend one axis of the installed fine grid into the ghost shell with the same parent-cell bisection the interior uses: boundary jg belongs to parent cell cl = isect_lo + floor(jg/rr), and k = modulo(jg, rr) picks the rr-way split. The parent boundaries are gcb for a level-1 block; a level>=2 block's parent grid is rebuilt from replicated metadata (the parent's own arrays exist only on its owner). Blocks stay buff_size inside the domain, so every ghost parent is an in-domain cell.
impure subroutine, public m_amr_frame::s_amr_restore_coarse (sync_device)
 Restore the global grid state saved by s_amr_swap_to_fine.
impure subroutine m_amr_frame::s_amr_igr_swap_sigma ()
 Save the coarse jac/jac_old and seed the (already swapped-in) fine block's sigma by piecewise-constant parent injection from the saved coarse sigma: interior = initial guess, ghost shell = frozen Dirichlet coupling data.
impure subroutine m_amr_frame::s_amr_igr_restore_sigma ()
 Restore the coarse jac/jac_old saved by s_amr_igr_swap_sigma (bounds already restored).

Detailed Description

Contains module m_amr_frame.

Definition in file m_amr_frame.fpp.f90.