tem_triangle_out_vec Subroutine

private subroutine tem_triangle_out_vec(me, conf)

Write out an array of triangles in lua format Only if nTriangles <= 10

Arguments

Type IntentOptional Attributes Name
type(tem_triangle_type), intent(in) :: me(:)

triangle 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_triangle_out_vec~~CallsGraph proc~tem_triangle_out_vec tem_triangle_out_vec aot_out_close_table aot_out_close_table proc~tem_triangle_out_vec->aot_out_close_table aot_out_open_table aot_out_open_table proc~tem_triangle_out_vec->aot_out_open_table aot_out_val aot_out_val proc~tem_triangle_out_vec->aot_out_val proc~tem_triangle_out_scal tem_triangle_out_scal proc~tem_triangle_out_vec->proc~tem_triangle_out_scal proc~tem_triangle_out_scal->aot_out_close_table proc~tem_triangle_out_scal->aot_out_open_table proc~tem_triangle_out_scal->aot_out_val

Called by

proc~~tem_triangle_out_vec~~CalledByGraph proc~tem_triangle_out_vec tem_triangle_out_vec interface~tem_triangle_out tem_triangle_out interface~tem_triangle_out->proc~tem_triangle_out_vec proc~tem_shape_out_scal tem_shape_out_scal proc~tem_shape_out_scal->interface~tem_triangle_out interface~tem_shape_out tem_shape_out interface~tem_shape_out->proc~tem_shape_out_scal proc~tem_shape_out_vec tem_shape_out_vec interface~tem_shape_out->proc~tem_shape_out_vec proc~tem_shape_out_vec->proc~tem_shape_out_scal proc~hvs_ascii_write_header hvs_ascii_write_header proc~hvs_ascii_write_header->interface~tem_shape_out proc~tem_convergence_out_single tem_convergence_out_single proc~tem_convergence_out_single->interface~tem_shape_out

Source Code

  subroutine tem_triangle_out_vec( me, conf )
    ! --------------------------------------------------------------------------
    !> triangle types to write out
    type( tem_triangle_type ), intent(in) :: me(:)
    !> Aotus type handling the output to the file in lua format
    type(aot_out_type), intent(inout) :: conf
    ! --------------------------------------------------------------------------
    ! counter
    integer :: i
    ! --------------------------------------------------------------------------

    ! create a table with name triangle
    call aot_out_open_table( put_conf = conf, tname = 'triangle' )

    if (size(me)<=10) then
      do i = 1, size(me)
        call tem_triangle_out_scal( me(i), conf )
      end do
    else
      call aot_out_val( put_conf = conf, vname = 'nTriangles', val = size(me) )
      call aot_out_val( put_conf = conf,                                  &
        &               val = 'Write triangle is limited to 10 triangles' )
    end if

    call aot_out_close_table( put_conf = conf )

  end subroutine tem_triangle_out_vec