5 integer, parameter :: sp
= 4
7 real(kind
=sp
), pointer, dimension(:, :) :: data => null()
8 integer :: nr_rows
= 0, nr_cols
= 0
13 function get_row(this
, i
) result(row
)
15 type(data_type
), intent(in
) :: this
16 integer, intent(in
) :: i
17 real(kind
=sp
), dimension(this
%nr_cols
) :: row
21 subroutine print_matrix(m
, i
, fmt_str
)
23 class(data_type
), intent(in
) :: m
24 integer, intent(in
) :: i
25 character(len
=20), intent(in
) :: fmt_str
26 write (unit
=6, fmt
=fmt_str
) get_row(m
, i
)
27 end subroutine print_matrix
29 end module data_func_mod