tem_sphere_out_scal Subroutine

private subroutine tem_sphere_out_scal(me, conf)

Write out a sphere shape in lua format

Arguments

Type IntentOptional 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


Calls

proc~~tem_sphere_out_scal~2~~CallsGraph proc~tem_sphere_out_scal~2 tem_sphere_out_scal proc~aot_out_open_table aot_out_open_table proc~tem_sphere_out_scal~2->proc~aot_out_open_table proc~aot_out_val aot_out_val proc~tem_sphere_out_scal~2->proc~aot_out_val proc~aot_out_close_table aot_out_close_table proc~tem_sphere_out_scal~2->proc~aot_out_close_table

Called by

proc~~tem_sphere_out_scal~2~~CalledByGraph proc~tem_sphere_out_scal~2 tem_sphere_out_scal proc~tem_sphere_out_vec~2 tem_sphere_out_vec proc~tem_sphere_out_vec~2->proc~tem_sphere_out_scal~2 interface~tem_sphere_out~2 tem_sphere_out interface~tem_sphere_out~2->proc~tem_sphere_out_scal~2 interface~tem_sphere_out~2->proc~tem_sphere_out_vec~2

Contents

Source Code


Source Code

  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