Contains module procedures associated with the JSON controller class
Get alternative default JSON filepath
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(in) | :: | this |
Loads json file on rank 0. The default filepath here is "./config.json".
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(MPIController), | intent(inout) | :: | mpiCont |
MPIController object to be used by the JSONController for communication |
||
character(len=*), | intent(in), | optional | :: | filepath |
Non-default filepath |
Closes currently open json file. If saveFile is true, saves the file being worked on before closing. The default filepath here is "./config.json".
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(MPIController), | intent(inout) | :: | mpiCont |
MPIController object to be used by the JSONController for communication |
||
logical, | intent(in), | optional | :: | saveFile |
True if the file should be saved before closing |
|
character(len=*), | intent(in), | optional | :: | filepath |
Non-default filepath for saving |
Load named scalar parameters by calling individual load routines.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedScalarContainer), | intent(inout) | :: | vars |
Values to load |
Set alternative default JSON filepath
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
character(len=*), | intent(in) | :: | filepath |
Load named array parameters by calling individual load routines.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedArrayContainer), | intent(inout) | :: | vars |
Values to load |
Load named reals from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedReal), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named int from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedInteger), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named logicals from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedLogical), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named strings from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedString), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named real arrays from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedRealArray), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named int arrays from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedIntegerArray), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named logical arrays from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedLogicalArray), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Load named string arrays from currently open json file on rank 0, then broadcast them to all processors. If a variable isn't found, the passed value is not modified.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedStringArray), | intent(inout), | dimension(:) | :: | vars |
Values to load |
Outputs named scalar parameters to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedScalarContainer), | intent(inout) | :: | vars |
Values to output |
Outputs named array parameters to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedArrayContainer), | intent(inout) | :: | vars |
Values to output |
Outputs named reals to json file from rank 0. First attempts to update the variable, and if it is not found it is added.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedReal), | intent(inout), | dimension(:) | :: | vars |
Values to output |
Outputs named ints to json file from rank 0. First attempts to update the variable, and if it is not found it is added.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedInteger), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named logicals to json file from rank 0. First attempts to update the variable, and if it is not found it is added.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedLogical), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named strings to json file from rank 0. First attempts to update the variable, and if it is not found it is added.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedString), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named real arrays to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedRealArray), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named int arrays to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedIntegerArray), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named logical arrays to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedLogicalArray), | intent(inout), | dimension(:) | :: | vars |
Values ot output |
Outputs named string arrays to json file from rank 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(JSONController), | intent(inout) | :: | this | |||
type(NamedStringArray), | intent(inout), | dimension(:) | :: | vars |