Scalar property.
A property with a single scalar value, like a critical constant.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | name |
Property’s name |
||
character(len=:), | public, | allocatable | :: | units |
Units |
||
real(kind=pr), | public | :: | value |
Property value |
Setup a scalar property from a provided json key and json file path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ScalarProperty), | intent(inout) | :: | self | |||
character(len=*), | intent(in) | :: | name |
Property name. Should be the key in the |
||
character(len=*), | intent(in) | :: | json_str |
|
||
character(len=*), | intent(in), | optional | :: | path |
|