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

Go to the source code of this file.

Functions/Subroutines

subroutine Simulation_mapIntToStr (key, str, block)
 

Function/Subroutine Documentation

◆ Simulation_mapIntToStr()

subroutine Simulation_mapIntToStr ( integer, intent(in)  key,
character(len=*), intent(inout)  str,
integer, intent(in)  block 
)

This routine is created by the setup script, and should never be edited. This routine maps an index described in the Simulation.h file to a string described in the Config file. The integer can represent a variable, a species, a flux variable, or a particle property.

For example, the Config file might say: VARIABLE velx At setup time, the Simulation.h file would be created to look like #define VELX_VAR 6 The result of "call Simulation_mapIntToStr(VELX_VAR,result,MAPBLOCK_UNK)" would be result="velx"

key – integer index str – returned string map – variable indicating the type of data structure within Simulation.h. Valid values are

Definition at line 35 of file Simulation_mapIntToStr.F90.