wiki:Restrict

Version 5 (modified by trac, 12 years ago) ( diff )

SUBROUTINE Restrict (NodeInfo Child, REAL[]* q, REAL[]* qParent, REAL[]* auxParent, INTEGER[] mBounds, LOGICAL lGhost)


Defined In:

contrib/astro/problem.f90


Inputs:

NodeInfo Child. The child grid whose data is being restricted onto its parent.

REAL[]* q. A pointer to a 5D array containing the child's grid data.

REAL[]* qParent. A pointer to a 5D array containing the parent's grid data.

REAL[]* auxParent. A pointer to a 5D array containing the parent's aux fields.

INTEGER[] mBounds. A 2D array containing the dimensions of the child relative to the parent (so it will be of dimension [MaxDims, 2]).

LOGICAL lGhost. Indicates whether or not to perform restriction on a child's ghost cells.


Description:

Performs the restriction operation on the Child grid, taking its field values and averaging them into the appropriate regions of Child's parent grid. If cooling is enabled (iCooling > 0, then only the specific thermal energy is averaged, rather than the total energy.


Called In:

InfoFieldUtils :: UpdateParent()

InfoFieldUtils :: RestrictFields()

MpiExec :: AccumulateUpdates()


Modules Used:

None.


Files Included:

None.

Note: See TracWiki for help on using the wiki.