Builder for custom models with user defined terms and modelbound data
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | userDefined | = | .false. |
True only if user explicitly sets it to true |
|
class(Model), | private, | allocatable | :: | modelBuffer |
Model buffer filled during initialization |
Getter for userDefined
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(in) | :: | this |
Set userDefined to .true.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Set userDefined to .false.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Object), | intent(inout) | :: | this |
Load parameters from "./config.json"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(inout) | :: | this | |||
type(JSONController), | intent(inout) | :: | jsonCont |
JSONController object responsible for reading the config file |
||
type(MPIController), | intent(inout) | :: | mpiCont |
MPIController object to be used with JSON IO |
Output used parameters to "./used_config.json"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(inout) | :: | this | |||
type(JSONController), | intent(inout) | :: | jsonCont |
JSONController object responsible for writing the config file |
||
type(MPIController), | intent(inout) | :: | mpiCont |
MPIController object to be used with JSON IO |
Getter for ModelBuilder scalarParams
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(in) | :: | this |
Getter for ModelBuilder arrayParams
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(in) | :: | this |
Setter for ModelBuilder scalarParams
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(inout) | :: | this | |||
type(NamedScalarContainer), | intent(in) | :: | params |
Setter for ModelBuilder scalarParams
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ModelBuilder), | intent(inout) | :: | this | |||
type(NamedArrayContainer), | intent(in) | :: | params |
Constructs the model for this builder and sets it into defined state
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(CustomModelBuilder), | intent(inout) | :: | this | |||
class(EnvironmentWrapper), | intent(inout) | :: | env | |||
class(Normalization), | intent(in) | :: | normObject |
Reference normalization object |
||
character(len=*), | intent(in) | :: | modelTag |
Tag of this model |
Adds the model built by the builder and resets the builder to become undefined for further use
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(CustomModelBuilder), | intent(inout) | :: | this | |||
class(Modeller), | intent(inout) | :: | modellerObj |
Adds individual term to model buffer based on JSON file data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(CustomModelBuilder), | intent(inout) | :: | this | |||
character(len=*), | intent(in) | :: | termJSONPrefix | |||
character(len=*), | intent(in) | :: | termTag | |||
class(EnvironmentWrapper), | intent(inout) | :: | env | |||
class(Normalization), | intent(in) | :: | normObject | |||
class(ModelboundData), | intent(in), | optional | :: | mbData |
Checks for associated term generator in JSON file and applies to custom model
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(CustomModelBuilder), | intent(inout) | :: | this | |||
class(EnvironmentWrapper), | intent(inout) | :: | env | |||
class(Normalization), | intent(in) | :: | normObject |
Reference normalization object |
||
character(len=*), | intent(in) | :: | modelTag |
Tag of this model |
||
integer(kind=ik), | intent(in) | :: | currentNumTerms | |||
class(ModelboundData), | intent(in), | optional | :: | mbData |