Allows the output of the single condition to lua out.
The data is written into the file, the lunit is connected to. It is formatted as a Lua table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_condition_type), | intent(in) | :: | me |
condition to write into the lua file |
||
type(aot_out_type), | intent(inout) | :: | conf |
aotus type handling the output to the file in lua format |
||
integer, | intent(in), | optional | :: | level |
to dump variable with key or without key |
subroutine tem_condition_out_single(me, conf, level)
! -------------------------------------------------------------------- !
!> condition to write into the lua file
type(tem_condition_type), intent(in) :: me
!> aotus type handling the output to the file in lua format
type(aot_out_type), intent(inout) :: conf
!> to dump variable with key or without key
integer, optional, intent(in) :: level
! -------------------------------------------------------------------- !
integer :: level_loc
! -------------------------------------------------------------------- !
if (present(level)) then
level_loc = level
else
level_loc = 0
end if
if( level_loc == 0) then
call aot_out_open_table( put_conf = conf, tname = 'condition' )
else
call aot_out_open_table( put_conf = conf )
end if
call aot_out_val( put_conf = conf, &
& val = me%operation, &
& vname = 'operator' )
call aot_out_val( put_conf = conf, &
& val = me%threshold, &
& vname = 'threshold' )
call aot_out_close_table( put_conf = conf )
end subroutine tem_condition_out_single