Read an $MshMeshFormat
from a connected formatted unit.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(gmsh_msh_format_type), | intent(inout) | :: | gmsh_msh_format | |||
integer, | intent(in) | :: | unit | |||
integer, | intent(out) | :: | iostat | |||
character(len=*), | intent(inout) | :: | iomsg |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=32), | private | :: | text_line |
A string for reading a line of text. |
subroutine read_formatted_kernel(gmsh_msh_format, unit, iostat, iomsg) class(gmsh_msh_format_type), intent(inout) :: gmsh_msh_format integer, intent(in) :: unit integer, intent(out) :: iostat character(*), intent(inout) :: iomsg !> Version: experimental !> A string for reading a line of text.<br> !> The length of this string is provisional. character(32) :: text_line read( &! unit = unit , &! fmt = '(A)' , &! iostat = iostat , &! iomsg = iomsg &! ) &! text_line if ( is_iostat_eor(iostat) ) iostat = iostat_success if ( iostat .ne. iostat_success ) return call check_text_line( &! text_line = text_line , &! str = header , &! iostat = iostat , &! iomsg = iomsg &! ) read( &! unit = unit , &! fmt = * , &! iostat = iostat , &! iomsg = iomsg &! ) &! gmsh_msh_format%version , &! gmsh_msh_format%file_type , &! gmsh_msh_format%data_size if ( iostat .ne. iostat_success ) return read( &! unit = unit , &! fmt = '(A)' , &! iostat = iostat , &! iomsg = iomsg &! ) &! text_line if ( is_iostat_eor(iostat) ) iostat = iostat_success if ( iostat .ne. iostat_success ) return call check_text_line( &! text_line = text_line , &! str = footer , &! iostat = iostat , &! iomsg = iomsg &! ) end subroutine read_formatted_kernel