Write out an array of triangles in lua format Only if nTriangles <= 10
Type | Intent | Optional | 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 |
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