Doxygen Generated Documentation From Interface Source Code
RuntimeParameters_get.F90 File Reference

Go to the source code of this file.


subroutine RuntimeParameters_getReal (name, value)
subroutine RuntimeParameters_getInt (name, value)
subroutine RuntimeParameters_getStr (name, value)
subroutine RuntimeParameters_getLog (name, value)

Function/Subroutine Documentation

◆ RuntimeParameters_getInt()

subroutine RuntimeParameters_getInt ( character(len=*), intent(in)  name,
integer, intent(out)  value 

Definition at line 59 of file RuntimeParameters_get.F90.

◆ RuntimeParameters_getLog()

subroutine RuntimeParameters_getLog ( character(len=*), intent(in)  name,
logical, intent(out)  value 

Definition at line 71 of file RuntimeParameters_get.F90.

◆ RuntimeParameters_getReal()

subroutine RuntimeParameters_getReal ( character(len=*), intent(in)  name,
real, intent(out)  value 

This function retrievess a runtime parameter from a linked list. RuntimeParameters_get is an overloaded routine. Underneath the hood, RuntimeParameters_get implements RuntimeParameters_getReal, RuntimeParameters_getInt, RuntimeParameters_getStr and RuntimeParameters_getLog.

Typically RuntimeParameters_get should only be called in the initialization routines for each unit (Driver_init, IO_init, Hydro_init, Simulation_init etc). In FLASH3 we get the runtime parameters one time and store the values in the corresponding data modules (Driver_data, IO_data, Hydro_data, Simulation_data, etc.)

name: name of parameter value: parameter value


use RuntimeParameters, ONLY : RuntimeParameters_set

integer :: lrefine_max

call RuntimeParameters_get('lrefine_max', lrefine_max) if (lrefine_max .GT. 2) then .......


Because RuntimeParameters_get is an overloaded function, a user calling the routine must USE the interface RuntimeParameters_interface.

Definition at line 53 of file RuntimeParameters_get.F90.

◆ RuntimeParameters_getStr()

subroutine RuntimeParameters_getStr ( character(len=*), intent(in)  name,
character(len=*), intent(out)  value 

Definition at line 65 of file RuntimeParameters_get.F90.