test_12 Subroutine

public subroutine test_12(error_cnt)

Arguments

Type IntentOptional AttributesName
integer, intent(out) :: error_cnt

report number of errors to caller


Variables

TypeVisibility AttributesNameInitial
integer, public, parameter:: imx =5
integer, public, parameter:: jmx =3
integer, public, parameter:: kmx =4

dimensions for raw work array of primitive type

type(json_core), public :: json

factory for manipulating json_value pointers

integer, public, dimension(3):: shape

shape of work array

integer, public, dimension(:), allocatable:: fetched_shape

retrieved shape

type(json_value), public, pointer:: root
type(json_value), public, pointer:: meta_array

json nodes to work with

type(json_value), public, pointer:: tmp_json_ptr
type(json_file), public :: my_file
real(kind=wp), public, dimension(imx,jmx,kmx):: raw_array

raw work array

real(kind=wp), public :: array_element
real(kind=wp), public, dimension(:), allocatable:: fetched_array
character(kind=CK,len=:), public, allocatable:: description
integer, public :: i
integer, public :: j
integer, public :: k

loop indices

integer, public :: array_length
integer, public :: lun
logical, public :: existed
logical, public, dimension(:), allocatable:: SOS

Subroutines

subroutine check_errors(assertion)

Arguments

Type IntentOptional AttributesName
logical, intent(in), optional :: assertion

Description

check for errors in json

subroutine check_file_errors(assertion)

Arguments

Type IntentOptional AttributesName
logical, intent(in), optional :: assertion

Description

check for errors in my_file

subroutine get_3D_from_array(json, element, i, count)

Arguments

Type IntentOptional AttributesName
class(json_core), intent(inout) :: json
type(json_value), intent(in), pointer:: element
integer, intent(in) :: i

index

integer, intent(in) :: count

size of array

Description

array callback function