aot_out_val_extdouble Subroutine

private subroutine aot_out_val_extdouble(put_conf, val, vname, advance_previous)

Put extdouble variables into the Lua script.

The value is passed in with val, optionally you can assign a name to it with the vname argument. If it should be put on the same line as the previous entry, you have to set advance_previous=.false.

Arguments

Type IntentOptional Attributes Name
type(aot_out_type), intent(inout) :: put_conf
real(kind=xdble_k), intent(in) :: val
character(len=*), intent(in), optional :: vname
logical, intent(in), optional :: advance_previous

Calls

proc~~aot_out_val_extdouble~~CallsGraph proc~aot_out_val_extdouble aot_out_val_extdouble proc~aot_out_breakline aot_out_breakline proc~aot_out_val_extdouble->proc~aot_out_breakline

Called by

proc~~aot_out_val_extdouble~~CalledByGraph proc~aot_out_val_extdouble aot_out_val_extdouble interface~aot_out_val~2 aot_out_val interface~aot_out_val~2->proc~aot_out_val_extdouble proc~aot_out_val_arr_extdouble aot_out_val_arr_extdouble interface~aot_out_val~2->proc~aot_out_val_arr_extdouble proc~aot_out_val_arr_double aot_out_val_arr_double proc~aot_out_val_arr_double->interface~aot_out_val~2 proc~aot_out_val_arr_extdouble->interface~aot_out_val~2 proc~aot_out_val_arr_int aot_out_val_arr_int proc~aot_out_val_arr_int->interface~aot_out_val~2 proc~aot_out_val_arr_logical aot_out_val_arr_logical proc~aot_out_val_arr_logical->interface~aot_out_val~2 proc~aot_out_val_arr_long aot_out_val_arr_long proc~aot_out_val_arr_long->interface~aot_out_val~2 proc~aot_out_val_arr_real aot_out_val_arr_real proc~aot_out_val_arr_real->interface~aot_out_val~2 proc~aot_out_val_arr_string aot_out_val_arr_string proc~aot_out_val_arr_string->interface~aot_out_val~2 interface~aot_out_val~3 aot_out_val interface~aot_out_val~3->proc~aot_out_val_arr_double interface~aot_out_val~3->proc~aot_out_val_arr_int interface~aot_out_val~3->proc~aot_out_val_arr_logical interface~aot_out_val~3->proc~aot_out_val_arr_long interface~aot_out_val~3->proc~aot_out_val_arr_real interface~aot_out_val~3->proc~aot_out_val_arr_string

Source Code

  subroutine aot_out_val_extdouble(put_conf, val, vname, advance_previous)
    !------------------------------------------------------------------------
    type(aot_out_type), intent(inout)  :: put_conf
    character(len=*), optional, intent(in) :: vname
    logical, optional, intent(in) :: advance_previous
    real(kind=xdble_k), intent(in) :: val
    !------------------------------------------------------------------------
    character(len=3) :: adv_string
    !------------------------------------------------------------------------

    if (put_conf%level > 0) then
      ! Leave the advancing to the next entry in the table.
      adv_string = 'no'
    else
      ! Not within a table, finalize the global definition with a newline.
      adv_string = 'yes'
    end if

    call aot_out_breakline(put_conf, advance_previous)

    if (present(vname)) then
      write(put_conf%outunit, fmt="(a,EN24.15)", advance=adv_string) &
        & trim(vname)//" = ", val
    else
      write(put_conf%outunit, fmt="(EN24.15)", advance=adv_string) val
    end if

  end subroutine aot_out_val_extdouble