Scrambler  1
AmrControl Module Reference

Main module for managing AMR algorithm. More...

+ Collaboration diagram for AmrControl:

List of all members.

Public Member Functions

subroutine, public BoundaryZoneInit ()
 sets information on boundary zone sizes
recursive subroutine, public AMRStart (n)
 An "AMR lite" routine that creates a tree with no ghost zones or communication.
subroutine, public PrintAllocations
Advance Routine
subroutine, public AMRAdvance (tnext)
 Advances grids until time tnext.
Recursive AMR subroutines
recursive subroutine, public AMR (n, ladvance_opt)
 Creates the next level of grids, advances the current level one timestep - and calls AMR on the next higher level.

Private Attributes

INTEGER framecounter = 0
REAL(KIND=qPREC) temp

Initialization routines

subroutine, public AmrInit
 Reads in global data and initializes tree level pointers.
subroutine, public LevelsInit
 Initializes level variables.
subroutine, public DomainInit
 Initializes level -2 master node and level -1 domains.
subroutine ReadInGlobalData ()
 Reads in GlobalData and level data.

Miscellaneous routines

subroutine, public ClearAllNodeLists (first_layer_gone)
 Deletes all nodes from a given level on up.
subroutine, public DestroyAllNodes ()
 Destroys all nodes.
subroutine, public BackupData ()
 Routine for creating a restart point without dumping to disk Needs to copy the old nodes, their overlap data(internal values of q, aux, & costmap), and pointers to their parent and child nodes Also needs to call any user routines that have to do with restart data (sink particles for example)
subroutine, public RestoreData ()
 Routine for creating a restart point without dumping to disk Needs to restore nodes, their overlap data(internal values of q, aux, & costmap), and pointers to their parent and child nodes Also needs to call any user routines that have to do with restart data (sink particles for example)
subroutine, public MpiTest
 Tests MPI_Packing...
subroutine UpdateLevelStep (n, step, lAdvance)

Detailed Description

Main module for managing AMR algorithm.

Definition at line 38 of file amr_control.f90.


Member Function/Subroutine Documentation

subroutine, public AmrInit ( )

Reads in global data and initializes tree level pointers.

Definition at line 86 of file amr_control.f90.

subroutine, public LevelsInit ( )

Initializes level variables.

Definition at line 126 of file amr_control.f90.

subroutine, public BoundaryZoneInit ( )

sets information on boundary zone sizes

Definition at line 164 of file amr_control.f90.

subroutine, public DomainInit ( )

Initializes level -2 master node and level -1 domains.

Definition at line 226 of file amr_control.f90.

subroutine ReadInGlobalData ( ) [private]

Reads in GlobalData and level data.

Definition at line 266 of file amr_control.f90.

subroutine, public AMRAdvance ( REAL(KIND=qPREC)  tnext)

Advances grids until time tnext.

Takes the necessary number of time steps based on the cfl limitations

Parameters:
tnext- time to advance to

Definition at line 357 of file amr_control.f90.

recursive subroutine, public AMR ( INTEGER  n,
LOGICAL, optional  ladvance_opt 
)

Creates the next level of grids, advances the current level one timestep - and calls AMR on the next higher level.

Parameters:
ncurrent level of node tree

Definition at line 394 of file amr_control.f90.

recursive subroutine, public AMRStart ( INTEGER  n)

An "AMR lite" routine that creates a tree with no ghost zones or communication.

This routine creates a refined AMR tree, but without initializing any ghost zones or communication. This tree is necessary in order to calculate CPU load and write an initial data file, but should not call any communication routines, since there is no communication required yet.

Parameters:
ncurrent level of node tree

Definition at line 687 of file amr_control.f90.

subroutine, public ClearAllNodeLists ( INTEGER  first_layer_gone)

Deletes all nodes from a given level on up.

Parameters:
first_layer_goneThe first level to be completely stripped of nodes.

Definition at line 862 of file amr_control.f90.

subroutine, public DestroyAllNodes ( )

Destroys all nodes.

Definition at line 875 of file amr_control.f90.

subroutine, public BackupData ( )

Routine for creating a restart point without dumping to disk Needs to copy the old nodes, their overlap data(internal values of q, aux, & costmap), and pointers to their parent and child nodes Also needs to call any user routines that have to do with restart data (sink particles for example)

Definition at line 896 of file amr_control.f90.

subroutine, public RestoreData ( )

Routine for creating a restart point without dumping to disk Needs to restore nodes, their overlap data(internal values of q, aux, & costmap), and pointers to their parent and child nodes Also needs to call any user routines that have to do with restart data (sink particles for example)

Definition at line 934 of file amr_control.f90.

subroutine UpdateLevelStep ( INTEGER  n,
INTEGER  step,
LOGICAL  lAdvance 
) [private]

Definition at line 999 of file amr_control.f90.

subroutine, public MpiTest ( )

Tests MPI_Packing...

Definition at line 1014 of file amr_control.f90.

subroutine, public PrintAllocations ( )

Definition at line 1021 of file amr_control.f90.


Member Data Documentation

INTEGER framecounter = 0 [private]

Definition at line 74 of file amr_control.f90.

REAL(KIND=qPREC) temp [private]

Definition at line 75 of file amr_control.f90.


The documentation for this module was generated from the following file:
 All Classes Files Functions Variables