1 ! Copyright 2020 Free Software Foundation, Inc.
3 ! This program is free software; you can redistribute it and/or modify
4 ! it under the terms of the GNU General Public License as published by
5 ! the Free Software Foundation; either version 3 of the License, or
6 ! (at your option) any later version.
8 ! This program is distributed in the hope that it will be useful,
9 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ! GNU General Public License for more details.
13 ! You should have received a copy of the GNU General Public License
14 ! along with this program. If not, see <http://www.gnu.org/licenses/>.
19 real, allocatable :: b (:, :)
21 procedure :: test_proc
26 subroutine test_proc (this)
27 class(test_type), intent (inout) :: this
28 allocate (this%b (3, 2))
29 call fill_array_2d (this%b)
30 print *, "" ! Break Here
32 ! Helper subroutine to fill 2-dimensional array with unique
34 subroutine fill_array_2d (array)
35 real, dimension (:,:) :: array
39 do i=LBOUND (array, 2), UBOUND (array, 2), 1
40 do j=LBOUND (array, 1), UBOUND (array, 1), 1
45 end subroutine fill_array_2d
46 end subroutine test_proc