@@ -60,14 +60,14 @@ end function constructor
60
60
61
61
pure type (array1d) function array1d_constructor(length) result(a)
62
62
! Overloads the default type constructor.
63
- integer , intent (in ) :: length
63
+ integer (ik) , intent (in ) :: length
64
64
allocate (a % array(length))
65
65
a % array = 0
66
66
end function array1d_constructor
67
67
68
68
pure type (array2d) function array2d_constructor(dims) result(a)
69
69
! Overloads the default type constructor.
70
- integer , intent (in ) :: dims(2 )
70
+ integer (ik) , intent (in ) :: dims(2 )
71
71
allocate (a % array(dims(1 ), dims(2 )))
72
72
a % array = 0
73
73
end function array2d_constructor
@@ -76,7 +76,7 @@ pure subroutine db_init(db, dims)
76
76
! Initialises biases structure.
77
77
type (array1d), allocatable , intent (in out ) :: db(:)
78
78
integer (ik), intent (in ) :: dims(:)
79
- integer :: n, nm
79
+ integer (ik) :: n, nm
80
80
nm = size (dims)
81
81
allocate (db(nm))
82
82
do n = 1 , nm - 1
@@ -89,7 +89,7 @@ pure subroutine dw_init(dw, dims)
89
89
! Initialises weights structure.
90
90
type (array2d), allocatable , intent (in out ) :: dw(:)
91
91
integer (ik), intent (in ) :: dims(:)
92
- integer :: n, nm
92
+ integer (ik) :: n, nm
93
93
nm = size (dims)
94
94
allocate (dw(nm))
95
95
do n = 1 , nm - 1
0 commit comments