FLASH-X
Doxygen Generated Documentation From Interface Source Code
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | Grid_updateRefinement (nstep, time, gridChanged) |
subroutine Grid_updateRefinement | ( | integer, intent(in) | nstep, |
real, intent(in) | time, | ||
logical | gridChanged | ||
) |
This routine is applicable only to mesh packages that use adaptive grid.
Applies user-defined refinment critera to determine which blocks need to be refined and derefined. Once the blocks are marked, calls amr_refine_derefine to actually carry out the refinements. During this stage, the blocks are redistributed across processors (if needed).
After the refinement, the newly created child blocks are filled via prolongation from the coarse parents. This prolongation step can use prolongation routines from paramesh, or defined by the user
Once the prolongation is done, the guardcells are filled. Finally, the EOS is called on the block interiors to make them thermodynamically consistent.
nstep : current step number time : current evolution time gridChanged : returns TRUE if grid may actually have changed.
Definition at line 41 of file Grid_updateRefinement.F90.