wiki:b4step

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

SUBROUTINE b4step(NodeInfo Info)


Defined In:

contrib/astro/problem.f90


Inputs:

NodeInfo Info. The grid to be prepped for advancement.


Description:

Implements any problem conditions that need to be initialized before each timestep. A common example is the inflow of material into the problem domain, such as you might get from a wind or a jet.

This function has five main tasks:

  1. If MHD is turned on, then the b4stepMHD() subroutine is called.
  1. If source term protection is turned on (iProtect > 0), then the Protect() subroutine is called.
  1. If the module flag lmodule is set, then b4step() triggers the b4step_module() subroutine.
  1. If the FloorTemp variable is greater than 0, then the subroutine ensures that each cell's energy density value does not drop below FloorTemp * rho + 1/2 (rho * |v|^2 + |B|^2).
  1. If MaintainAuxArrays is set, then the aux array masks are set to -INFINITY.


Called In:

WaveBear :: advance()

MultiGrid :: advance()

MusclBear :: advance()

ClassicBear :: advance()

CompactBear :: advance()


Modules Used:

None.


Files Included:

None.

Note: See TracWiki for help on using the wiki.