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

Go to the source code of this file.

Functions/Subroutines

subroutine Grid_renormAbundance (tileDesc, tileLimits, solnData)
 

Function/Subroutine Documentation

◆ Grid_renormAbundance()

subroutine Grid_renormAbundance ( type(Grid_tile_t)  tileDesc,
integer  tileLimits,
real  solnData 
)

Renormalize the abundances in a given block so they sum to 1. This should be used before calling the EOS. Each abundance is restricted to fall between smallx and 1.

Also check the abundance conservation and report if it is worse than abundErr.

This routine is called automatically by Hydro and MHD in FLASH if the irenorm runtime parameter is set to 1.

Only abundances/fluids which contribute to the EOS are included.

blockDesc - the block number to renormalize blkLimits - the index limits for internal zones of the block to renormalize solnData - Pointer to the block to be renormalized

PARAMETERS

smallx - the cutoff value for the composition mass fraction

SEE ALSO

Grid_limitAbundance

Definition at line 50 of file Grid_renormAbundance.F90.