initVariableECSTransition Module Subroutine

pure module subroutine initVariableECSTransition(this, locNumX, inStates, outStates, energyDeriv, energyDerivIndices, csDerivs, csDerivsReqIndices, csCols, distVarIndex, refVSpace, momentumMoment, l1Index)

Initialization routine for VariableECSTransition object

Arguments

Type IntentOptional Attributes Name
class(VariableECSTransition), intent(inout) :: this
integer(kind=ik), intent(in) :: locNumX

Local number of spatial cells

integer(kind=ik), intent(in), dimension(:) :: inStates

Pre-transition states

integer(kind=ik), intent(in), dimension(:) :: outStates

Post-transition states

class(Derivation), intent(in) :: energyDeriv

Derivation object used in rate calculation

integer(kind=ik), intent(in), dimension(:) :: energyDerivIndices

Indices for rate derivation

type(DerivationContainer), intent(in), dimension(:) :: csDerivs

Derivation objects for the various cross section data columns

type(IntArray), intent(in), dimension(:) :: csDerivsReqIndices

Required indices for the various cross section data column derivations

integer(kind=ik), intent(in), dimension(:) :: csCols

Cross section columns corresponding to each of the derivations

integer(kind=ik), intent(in) :: distVarIndex

Distribution function variable index

type(VSpace), intent(inout), target :: refVSpace

Target for the reference pointer

logical, intent(in), optional :: momentumMoment

Set to true if the momentum rate should be calculated

integer(kind=ik), intent(in), optional :: l1Index

Index of the l=1 harmonic - must be provided if calculating momentum rate