Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(type_input), | intent(inout) | :: | self | |||
type(json_file), | intent(inout) | :: | json |
subroutine read_output_settings_standard(self, json) implicit none class(type_input), intent(inout) :: self type(json_file), intent(inout) :: json character(:), allocatable :: key logical :: found key = join([standard_output, print_progress]) call json%get(key, self%output_settings%standard_output%print_progress, found) call json%print_error_message(output_unit) if (.not. found) then self%output_settings%standard_output%print_progress = .false. end if key = join([standard_output, print_interval, unit]) call json%get(key, self%output_settings%standard_output%print_progress_unit, found) call json%print_error_message(output_unit) if (.not. found) then call json%destroy() call error_message(904, c_opt=key) else if (.not. any(valid_units(:) == self%output_settings%standard_output%print_progress_unit)) then call json%destroy() call error_message(905, c_opt=key) end if key = join([standard_output, print_interval, value]) call json%get(key, self%output_settings%standard_output%print_progress_interval, found) call json%print_error_message(output_unit) if (.not. found) then call json%destroy() call error_message(904, c_opt=key) else if (self%output_settings%standard_output%print_progress_interval <= 0) then call json%destroy() call error_message(905, c_opt=key) end if end subroutine read_output_settings_standard