Write out a cylinder shape in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_cylinder_type), | intent(in) | :: | me |
cylinder types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf |
Aotus type handling the output to the file in lua format |
subroutine tem_cylinder_out_scal( me, conf )
! --------------------------------------------------------------------------
!> cylinder types to write out
type( tem_cylinder_type ), intent(in) :: me
!> Aotus type handling the output to the file in lua format
type(aot_out_type), intent(inout) :: conf
! --------------------------------------------------------------------------
! ---------------------------------------------------------------------------
! create a table with name cylinder if not exist
if( conf%level == 0 ) then
call aot_out_open_table( put_conf = conf, tname = 'object' )
else
call aot_out_open_table( put_conf = conf )
end if
call aot_out_val( put_conf = conf, vname = 'origin', val = me%origin )
call aot_out_val( put_conf = conf, vname = 'vec', val = me%vec )
call aot_out_val( put_conf = conf, vname = 'radius', val = me%radius )
call aot_out_val( put_conf = conf, vname = 'only_surface', &
& val = me%only_surface )
call aot_out_close_table( put_conf = conf )
end subroutine tem_cylinder_out_scal