Module to handle imported numerical equilibria. Contains subroutines to retrieve the equilibrium arrays from a file specified in the parfile.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | file_id | = | 123 | ||
integer, | private | :: | num_var | = | 10 | ||
real(kind=dp), | private, | allocatable | :: | input(:,:) | |||
real(kind=dp), | private, | allocatable | :: | interp(:,:) | |||
real(kind=dp), | private, | allocatable | :: | d_interp(:,:) | |||
real(kind=dp), | private, | allocatable | :: | dd_interp(:,:) |
Imports arrays from the file specified by the parfile parameter input_file. To be called in the equilibrium submodule.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(settings_t), | intent(inout) | :: | settings | |||
type(grid_t), | intent(inout) | :: | grid |
Looks up the equilibrium value for given quantity and position.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | type | |||
real(kind=dp), | intent(in) | :: | x | |||
integer, | intent(in) | :: | derivative | |||
real(kind=dp), | intent(out) | :: | out |
Translates equilibrium name to index.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | tag | |||
integer, | intent(out) | :: | index |
Deallocates this module's arrays. Called in main as part of cleanup.