FLASH4.2.2 API

Generated from /asc/asci2/site/flashcode/secure/release_4p22/source/physics/Gravity/Gravity_accelOneRow.F90 with ROBODoc v4.99.8 on Wed Jun 18 16:00:22 2014

TABLE OF CONTENTS


[Functions] source/physics/Gravity/Gravity_accelOneRow

[top][index]

NAME

  Gravity_accelOneRow 

SYNOPSIS

  call Gravity_accelOneRow(integer(IN)  :: pos(2),
                           integer(IN)  :: sweepDir,
                           integer(IN)  :: blockID,
                           integer(IN)  :: numCells,
                           real(INOUT)  :: grav(numCells),
                           integer(IN),optional :: potentialIndex,
                           integer(IN),optional :: extraAccelVars(MDIM))

DESCRIPTION

  This routine computes the gravitational acceleration for a row
  of cells in a specified direction in a given block.

ARGUMENTS

  pos      :  Row indices transverse to the sweep direction
  sweepDir :    The sweep direction:  allowed values are 
              SWEEP_X, SWEEP_Y, and SWEEP_Z. These values are defined
              in constants.h.
  blockID  :  The local identifier of the block to work on
  numCells :  Number of cells to update in grav()
  grav()   :   Array to receive result
  potentialIndex :   Variable # to take as potential if present
                    ( this argument is applicable only in selfgravity
                      formulated as Poisson's equation)
  extraAccelVars      -  if specified,  Variables from which extra accelerations
                         are taken. Used to identify the UNK variables
                         that contain sink-on-gas accelerations when
                         sink particles are used.