fortplot_spec_json_field_plot Module

JSON serialization helpers for field_plot_t



Functions

public function serialize_field_plot(field, indent) result(json)

Arguments

Type IntentOptional Attributes Name
type(field_plot_t), intent(in) :: field
integer, intent(in) :: indent

Return Value character(len=:), allocatable


Subroutines

public subroutine append_field_real_array(json, name, values, indent, first)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: json
character(len=*), intent(in) :: name
real(kind=wp), intent(in), allocatable :: values(:)
integer, intent(in) :: indent
logical, intent(inout) :: first

public subroutine append_field_string(json, name, value, indent, first)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: json
character(len=*), intent(in) :: name
character(len=:), intent(in), allocatable :: value
integer, intent(in) :: indent
logical, intent(inout) :: first

public subroutine append_field_bool(json, name, value, indent, first)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: json
character(len=*), intent(in) :: name
logical, intent(in) :: value
integer, intent(in) :: indent
logical, intent(inout) :: first

public subroutine append_field_int(json, name, value, indent, first)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: json
character(len=*), intent(in) :: name
integer, intent(in) :: value
integer, intent(in) :: indent
logical, intent(inout) :: first

public subroutine append_field_real(json, name, value, indent, first)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: json
character(len=*), intent(in) :: name
real(kind=wp), intent(in) :: value
integer, intent(in) :: indent
logical, intent(inout) :: first