Set up the perpendicular wavenumbers by calling the appropriate sub-modules.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public, | dimension(:,:), allocatable | :: | kwork_filter | |||
real, | public, | dimension (:,:,:), allocatable | :: | kperp2 | |||
real, | public, | dimension (:,:,:), allocatable | :: | inv_kperp2 | |||
real, | public, | dimension (:,:), allocatable | :: | theta0 |
The grid |
||
real, | public, | dimension (:), allocatable | :: | akx |
The grid |
||
real, | public, | dimension (:), allocatable | :: | aky |
The grid |
||
integer, | public, | dimension(:), allocatable | :: | ikx |
Discrete kx grid index |
||
integer, | public | :: | naky |
Number of points |
|||
integer, | public | :: | ntheta0 |
Number of points |
|||
integer, | public | :: | nx |
Number of (real space) points |
|||
integer, | public | :: | ny |
Number of (real space) points |
|||
integer, | public | :: | jtwist_out |
Related to the box size in x. See jtwist |
|||
character(len=20), | public | :: | grid_option |
The type of perpendicular wavenumber grid used. See grid_option |
|||
integer, | public | :: | gridopt_switch | ||||
integer, | public, | parameter | :: | gridopt_single | = | 1 | |
integer, | public, | parameter | :: | gridopt_range | = | 2 | |
integer, | public, | parameter | :: | gridopt_specified | = | 3 | |
integer, | public, | parameter | :: | gridopt_box | = | 4 | |
logical, | public | :: | reality | = | .false. | ||
logical, | public | :: | box | = | .false. | ||
logical, | private | :: | initialized | = | .false. | ||
logical, | private | :: | kp2init | = | .false. | ||
logical, | private | :: | nml_exist | ||||
logical, | private | :: | parameters_read | = | .false. | ||
type(kt_grids_config_type), | private | :: | kt_grids_config |
Used to represent the input configuration of kt_grids
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | exist | = | .false. |
Does the related namelist exist in the target input file? |
|
integer, | public | :: | index | = | 0 |
Used to hold the specific index of numbered namelists |
|
logical, | public | :: | skip_read | = | .false. |
Do we want to skip the read step in init? |
|
logical, | public | :: | skip_broadcast | = | .false. |
Do we want to skip the broadcast step in init? |
|
character(len=20), | public | :: | grid_option | = | "default" |
Controls the type of perpendicular wavenumber grid to use. Can be one of |
Gets the default name for this namelist
Gets the default requires index for this namelist
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_overrides_type), | intent(in) | :: | grids_ov |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | report_unit |
Set the module level config type Will abort if the module has already been initialised to avoid inconsistencies.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
Reads in the kt_grids_knobs namelist and populates the member variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kt_grids_config_type), | intent(inout) | :: | self |
Writes out a namelist representing the current state of the config object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kt_grids_config_type), | intent(in) | :: | self | |||
integer, | intent(in), | optional | :: | unit |
Resets the config object to the initial empty state
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kt_grids_config_type), | intent(inout) | :: | self |
Broadcasts all config parameters so object is populated identically on all processors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kt_grids_config_type), | intent(inout) | :: | self |