Write out a triangle shape in lua format
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_scal( 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
! --------------------------------------------------------------------------
integer :: iNode
! ---------------------------------------------------------------------------
! create a table with name triangle if not exist
if( conf%level == 0 ) then
call aot_out_open_table( put_conf = conf, tname = 'triangle' )
else
call aot_out_open_table( put_conf = conf )
end if
!write nodes
call aot_out_open_table( put_conf = conf, tname = 'nodes' )
do iNode=1,3
call aot_out_val( put_conf = conf, val = me%nodes(:,iNode) )
enddo
call aot_out_close_table( put_conf = conf )
call aot_out_close_table( put_conf = conf )
end subroutine tem_triangle_out_scal