soa_read_field Interface

public interface soa_read_field

Read one field record back and check its length.

Usage: call soa_read_field(unit, name, values, n, swapped, err)

values is reallocated to exactly n elements. name appears in the error message so a mismatch names the offending field. swapped is the flag returned by soa_read_prologue.

Fails with ERROR_VALIDATION when the record holds a number of elements other than n, or when a logical record holds a code other than 0 or 1, and with ERROR_IO when the stream is truncated.

Calls

interface~~soa_read_field~~CallsGraph interface~soa_read_field soa_read_field proc~soa_read_int32_field soa_read_int32_field interface~soa_read_field->proc~soa_read_int32_field proc~soa_read_int64_field soa_read_int64_field interface~soa_read_field->proc~soa_read_int64_field proc~soa_read_logical_field soa_read_logical_field interface~soa_read_field->proc~soa_read_logical_field proc~soa_read_real_dp_field soa_read_real_dp_field interface~soa_read_field->proc~soa_read_real_dp_field proc~soa_read_real_sp_field soa_read_real_sp_field interface~soa_read_field->proc~soa_read_real_sp_field interface~read_array read_array proc~soa_read_int32_field->interface~read_array proc~error_has_error error_t%error_has_error proc~soa_read_int32_field->proc~error_has_error proc~soa_check_field_count soa_check_field_count proc~soa_read_int32_field->proc~soa_check_field_count proc~soa_read_int64_field->interface~read_array proc~soa_read_int64_field->proc~error_has_error proc~soa_read_int64_field->proc~soa_check_field_count proc~soa_read_logical_field->interface~read_array interface~to_char to_char proc~soa_read_logical_field->interface~to_char proc~soa_read_logical_field->proc~error_has_error proc~error_set error_t%error_set proc~soa_read_logical_field->proc~error_set proc~soa_check_alloc soa_check_alloc proc~soa_read_logical_field->proc~soa_check_alloc proc~soa_read_logical_field->proc~soa_check_field_count proc~soa_read_real_dp_field->interface~read_array proc~soa_read_real_dp_field->proc~error_has_error proc~soa_read_real_dp_field->proc~soa_check_field_count proc~soa_read_real_sp_field->interface~read_array proc~soa_read_real_sp_field->proc~error_has_error proc~soa_read_real_sp_field->proc~soa_check_field_count proc~read_char_record read_char_record interface~read_array->proc~read_char_record proc~read_int32_array read_int32_array interface~read_array->proc~read_int32_array proc~read_int64_array read_int64_array interface~read_array->proc~read_int64_array proc~read_real_dp_array read_real_dp_array interface~read_array->proc~read_real_dp_array proc~read_real_sp_array read_real_sp_array interface~read_array->proc~read_real_sp_array proc~to_char_char to_char_char interface~to_char->proc~to_char_char proc~to_char_dp to_char_dp interface~to_char->proc~to_char_dp proc~to_char_int32 to_char_int32 interface~to_char->proc~to_char_int32 proc~to_char_int64 to_char_int64 interface~to_char->proc~to_char_int64 proc~to_char_logical to_char_logical interface~to_char->proc~to_char_logical proc~to_char_matrix_dp to_char_matrix_dp interface~to_char->proc~to_char_matrix_dp proc~to_char_matrix_int32 to_char_matrix_int32 interface~to_char->proc~to_char_matrix_int32 proc~to_char_matrix_int64 to_char_matrix_int64 interface~to_char->proc~to_char_matrix_int64 proc~to_char_matrix_sp to_char_matrix_sp interface~to_char->proc~to_char_matrix_sp proc~to_char_sp to_char_sp interface~to_char->proc~to_char_sp proc~to_char_vector_dp to_char_vector_dp interface~to_char->proc~to_char_vector_dp proc~to_char_vector_int32 to_char_vector_int32 interface~to_char->proc~to_char_vector_int32 proc~to_char_vector_int64 to_char_vector_int64 interface~to_char->proc~to_char_vector_int64 proc~to_char_vector_sp to_char_vector_sp interface~to_char->proc~to_char_vector_sp proc~soa_check_alloc->interface~to_char proc~soa_check_alloc->proc~error_set proc~soa_check_field_count->interface~to_char proc~soa_check_field_count->proc~error_set proc~check_io check_io proc~read_char_record->proc~check_io proc~error_get_code error_t%error_get_code proc~read_char_record->proc~error_get_code proc~error_wrap error_t%error_wrap proc~read_char_record->proc~error_wrap proc~read_record_header read_record_header proc~read_char_record->proc~read_record_header proc~bswap_int32 bswap_int32 proc~read_int32_array->proc~bswap_int32 proc~read_int32_array->proc~check_io proc~read_int32_array->proc~error_get_code proc~read_int32_array->proc~error_wrap proc~read_int32_array->proc~read_record_header proc~bswap_int64 bswap_int64 proc~read_int64_array->proc~bswap_int64 proc~read_int64_array->proc~check_io proc~read_int64_array->proc~error_get_code proc~read_int64_array->proc~error_wrap proc~read_int64_array->proc~read_record_header proc~bits_to_real_dp bits_to_real_dp proc~read_real_dp_array->proc~bits_to_real_dp proc~read_real_dp_array->proc~bswap_int64 proc~read_real_dp_array->proc~check_io proc~read_real_dp_array->proc~error_get_code proc~read_real_dp_array->proc~error_wrap proc~read_real_dp_array->proc~read_record_header proc~bits_to_real_sp bits_to_real_sp proc~read_real_sp_array->proc~bits_to_real_sp proc~read_real_sp_array->proc~bswap_int32 proc~read_real_sp_array->proc~check_io proc~read_real_sp_array->proc~error_get_code proc~read_real_sp_array->proc~error_wrap proc~read_real_sp_array->proc~read_record_header proc~check_io->interface~to_char proc~check_io->proc~error_set proc~error_wrap->proc~error_has_error proc~clip_tail clip_tail proc~error_wrap->proc~clip_tail proc~read_record_header->interface~to_char proc~read_record_header->proc~error_set proc~read_record_header->proc~bswap_int32 proc~read_record_header->proc~bswap_int64 proc~read_record_header->proc~check_io proc~element_bytes element_bytes proc~read_record_header->proc~element_bytes

Called by

interface~~soa_read_field~~CalledByGraph interface~soa_read_field soa_read_field proc~particle_soa_deserialize particle_soa_t%particle_soa_deserialize proc~particle_soa_deserialize->interface~soa_read_field

Module Procedures

private subroutine soa_read_int32_field(unit, name, values, n, swapped, err)

Read an integer(int32) field record.

Arguments

Type IntentOptional Attributes Name
integer(kind=default_int), intent(in) :: unit
character(len=*), intent(in) :: name
integer(kind=int32), intent(out), allocatable :: values(:)
integer(kind=default_int), intent(in) :: n
logical, intent(in) :: swapped
type(error_t), intent(inout) :: err

private subroutine soa_read_int64_field(unit, name, values, n, swapped, err)

Read an integer(int64) field record.

Arguments

Type IntentOptional Attributes Name
integer(kind=default_int), intent(in) :: unit
character(len=*), intent(in) :: name
integer(kind=int64), intent(out), allocatable :: values(:)
integer(kind=default_int), intent(in) :: n
logical, intent(in) :: swapped
type(error_t), intent(inout) :: err

private subroutine soa_read_real_sp_field(unit, name, values, n, swapped, err)

Read a real(sp) field record.

Arguments

Type IntentOptional Attributes Name
integer(kind=default_int), intent(in) :: unit
character(len=*), intent(in) :: name
real(kind=sp), intent(out), allocatable :: values(:)
integer(kind=default_int), intent(in) :: n
logical, intent(in) :: swapped
type(error_t), intent(inout) :: err

private subroutine soa_read_real_dp_field(unit, name, values, n, swapped, err)

Read a real(dp) field record.

Arguments

Type IntentOptional Attributes Name
integer(kind=default_int), intent(in) :: unit
character(len=*), intent(in) :: name
real(kind=dp), intent(out), allocatable :: values(:)
integer(kind=default_int), intent(in) :: n
logical, intent(in) :: swapped
type(error_t), intent(inout) :: err

private subroutine soa_read_logical_field(unit, name, values, n, swapped, err)

Read a default logical field from an int32 record of 0/1 codes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=default_int), intent(in) :: unit
character(len=*), intent(in) :: name
logical, intent(out), allocatable :: values(:)
integer(kind=default_int), intent(in) :: n
logical, intent(in) :: swapped
type(error_t), intent(inout) :: err