Version 3 (modified by 12 years ago) ( diff ) | ,
---|
SUBROUTINE RootDecompose (NodeInfo RootInfo, INTEGER(MaxDims) Decompose)
Click here to view the source.
Performs a domain decomposition on the root node grid represented RootInfo
if one or more values in the Decompose
array is greater than 1. In AMR terms, this means splitting the grid into several smaller grids; in BearCLAW terms, this means creating one or more new root nodes to hold the resulting new grids.
NOTE: This function assumes that RootInfo
is attached to a root node, but it does not perform any check. It is therefore possible to call this function on a non-root node, which would (probably) be bad. Be sure when using this function to make sure that RootInfo is indeed attached to a root node.
INCLUDES:
None.
USES:
- nodeinfodef.f90 supplies the NodeInfo data structure and some functions that operate on it.
- treeops.f90 supplies the Node and Forest structures and accompanying methods, as well as the ApplyOn_ functions.
- mpi_exec.f90 supplies functions used to set up distributed processing (most of which tend to have MPI_ somewhere in the name).
- serial_exec.f90 supplies functions used for single-processor processing.
- beario.f90 provides some file IO functions.
- scheme module supplies time-stepping scheme.
- contrib/astro/problem.f90 Contains problem-specific variables and functions.