FLASH-X
Doxygen Generated Documentation From Interface Source Code
Functions/Subroutines
RadTrans_sumEnergy.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine RadTrans_sumEnergy (ivar, nblk, blklst)
 

Function/Subroutine Documentation

◆ RadTrans_sumEnergy()

subroutine RadTrans_sumEnergy ( integer, intent(in)  ivar,
integer, intent(in)  nblk,
integer, dimension(nblk), intent(in)  blklst 
)

This subroutine is useful when mesh replication is active (meshCopyCount > 1). It takes an unk variable and adds it across all the meshes. For example, if each mesh had computed ERAD separately using its own energy groups, this subroutine could be used to add all of the ERADs to compute the total radiation energy.

ivar : the unk variable to add blklst : the list of blocks to cover nblk : the number of blocks

Definition at line 30 of file RadTrans_sumEnergy.F90.