FIXME : Add documentation Made public for unit tests
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | fieldopt_switch | ||||
logical, | public | :: | remove_zonal_flows_switch | ||||
logical, | public | :: | force_maxwell_reinit | ||||
integer, | public, | parameter | :: | fieldopt_implicit | = | 1 | |
integer, | public, | parameter | :: | fieldopt_test | = | 2 | |
integer, | public, | parameter | :: | fieldopt_local | = | 3 | |
integer, | public, | parameter | :: | fieldopt_gf_local | = | 4 | |
logical, | private | :: | dump_response | ||||
logical, | private | :: | read_response | ||||
logical, | private | :: | initialized | = | .false. | ||
logical, | private | :: | parameters_read | = | .false. | ||
type(text_option), | private, | parameter, dimension (6) | :: | fieldopts | = | [text_option('default', fieldopt_implicit), text_option('implicit', fieldopt_implicit), text_option('test', fieldopt_test), text_option('local', fieldopt_local), text_option('gf_local', fieldopt_gf_local), text_option('implicit_local', fieldopt_local)] | |
type(fields_config_type), | private | :: | fields_config |
Used to represent the input configuration of fields
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? |
|
logical, | public | :: | skip_smart_defaults | = | .false. |
Do we want to skip the smaart defaults in init? |
|
logical, | public | :: | do_smart_update | = | .false. |
Used with |
|
logical, | public | :: | dump_response | = | .false. |
Writes files containing the field response matrix after
initialisation. This currently works for
|
|
logical, | public | :: | field_local_allreduce | = | .false. |
Set to true to use an allreduce (on |
|
logical, | public | :: | field_local_allreduce_sub | = | .false. |
Set to |
|
logical, | public | :: | field_local_nonblocking_collectives | = | .false. |
If |
|
logical, | public | :: | field_local_tuneminnrow | = | .false. |
Set to |
|
character(len=20), | public | :: | field_option | = | 'default' |
The |
|
logical, | public | :: | field_subgath | = | .false. |
Set to true to use allgatherv to fetch parts of the field update
vector calculated on other procs. When false uses a sum_allreduce
instead. This doesn't rely on sub-communicators so should work for
any layout and processor count. Note: This only impacts
|
|
logical, | public | :: | force_maxwell_reinit | = | .true. |
If |
|
integer, | public | :: | minnrow | = | 16 |
Used with |
|
logical, | public | :: | read_response | = | .false. |
Reads files containing the field response matrix and uses to initialise GS2s response matrix rather than using the usual initialisation process. |
|
logical, | public | :: | remove_zonal_flows_switch | = | .false. |
Delete zonal flows at every timestep. |
|
character(len=256), | public | :: | response_dir | = | '' |
Sets location in which to store/look for response dump files. We don't currently check that this location exists before attempting to use it, which could cause problems. The default is to save them in the working directory. |
|
character(len=256), | public | :: | response_file | = | '' |
Allows customisation of the base filename to be used for
response files. If not set then we use |
Gets the default name for this namelist
Gets the default requires index for this namelist
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | report_unit |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(optimisations_overrides_type), | intent(in) | :: | opt_ov |
Calls all initialisations required for init_fields_implicit/local, reads parameters and allocates field arrays
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fields_config_type), | intent(in), | optional | :: | fields_config_in |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fields_config_type), | intent(in), | optional | :: | fields_config_in |
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fields_config_type), | intent(in), | optional | :: | fields_config_in |
Force the current response matrices to be written to file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in), | optional | :: | suffix |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fields_config_type), | intent(in), | optional | :: | fields_config_in |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | dump_flag | |||
logical, | intent(in) | :: | read_flag |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep |
FIXME : Add documentation
FIXME : Add documentation
Reads in the fields_knobs namelist and populates the member variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fields_config_type), | intent(inout) | :: | self |
Writes out a namelist representing the current state of the config object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fields_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(fields_config_type), | intent(inout) | :: | self |
Broadcasts all config parameters so object is populated identically on all processors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(fields_config_type), | intent(inout) | :: | self |
Set the module level config instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(fields_config_type), | intent(in), | optional | :: | fields_config_in |