load_temperature Subroutine

private impure elemental subroutine load_temperature(this)

Uses

    • json_module
  • proc~~load_temperature~~UsesGraph proc~load_temperature foropenai_Transcription::Transcription%load_temperature json_module json_module proc~load_temperature->json_module

Type Bound

Transcription

Arguments

Type IntentOptional Attributes Name
class(Transcription), intent(inout) :: this

Calls

proc~~load_temperature~~CallsGraph proc~load_temperature foropenai_Transcription::Transcription%load_temperature destroy destroy proc~load_temperature->destroy get get proc~load_temperature->get initialize initialize proc~load_temperature->initialize load_file load_file proc~load_temperature->load_file

Called by

proc~~load_temperature~~CalledByGraph proc~load_temperature foropenai_Transcription::Transcription%load_temperature proc~load_transcription_data foropenai_Transcription::Transcription%load_Transcription_data proc~load_transcription_data->proc~load_temperature proc~set_transcription_data foropenai_Transcription::Transcription%set_Transcription_data proc~set_transcription_data->proc~load_transcription_data program~test_transcription test_Transcription program~test_transcription->proc~set_transcription_data

Source Code

   elemental impure subroutine load_temperature(this)
      use json_module, only: json_file
      class(Transcription), intent(inout) :: this
      type(json_file)                     :: json
      real                                :: tmp
      logical                             :: found
      call json%initialize()
      call json%load_file(trim(this%file_name))
      call json%get("Transcription.temperature", tmp, found=found)
      if (found) this%temperature = tmp
      call json%destroy()
   end subroutine load_temperature