Write out a sphere shape in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_sphere_type), | intent(in) | :: | me |
sphere types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf |
Aotus type handling the output to the file in lua format |
subroutine tem_sphere_out_scal( me, conf )
! --------------------------------------------------------------------------
!> sphere types to write out
type( tem_sphere_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 sphere 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 = '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_sphere_out_scal