Save AABB geometry into Tecplot ascii file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(aabb_object), | intent(in) | :: | self | AABB. |
||
| integer(kind=I4P), | intent(in) | :: | file_unit | File unit. |
||
| character(len=*), | intent(in), | optional | :: | aabb_name | Name of AABB. |
subroutine save_geometry_tecplot_ascii(self, file_unit, aabb_name)
!< Save AABB geometry into Tecplot ascii file.
class(aabb_object), intent(in) :: self !< AABB.
integer(I4P), intent(in) :: file_unit !< File unit.
character(*), intent(in), optional :: aabb_name !< Name of AABB.
character(len=:), allocatable :: aabb_name_ !< Name of AABB, local variable.
type(vector_R8P) :: vertex(8) !< AABB vertices.
integer(I4P) :: v !< Counter.
aabb_name_ = 'AABB' ; if (present(aabb_name)) aabb_name_ = aabb_name
write(file_unit, '(A)') 'ZONE T="'//aabb_name//'", I=2, J=2, K=2'
vertex = self%vertex()
do v=1, 8
write(file_unit, '(3('//FR8P//',1X))') vertex(v)%x, vertex(v)%y, vertex(v)%z
enddo
endsubroutine save_geometry_tecplot_ascii