@@ -60,14 +60,14 @@ end function constructor
6060
6161 pure type (array1d) function array1d_constructor(length) result(a)
6262 ! Overloads the default type constructor.
63- integer , intent (in ) :: length
63+ integer (ik) , intent (in ) :: length
6464 allocate (a % array(length))
6565 a % array = 0
6666 end function array1d_constructor
6767
6868 pure type (array2d) function array2d_constructor(dims) result(a)
6969 ! Overloads the default type constructor.
70- integer , intent (in ) :: dims(2 )
70+ integer (ik) , intent (in ) :: dims(2 )
7171 allocate (a % array(dims(1 ), dims(2 )))
7272 a % array = 0
7373 end function array2d_constructor
@@ -76,7 +76,7 @@ pure subroutine db_init(db, dims)
7676 ! Initialises biases structure.
7777 type (array1d), allocatable , intent (in out ) :: db(:)
7878 integer (ik), intent (in ) :: dims(:)
79- integer :: n, nm
79+ integer (ik) :: n, nm
8080 nm = size (dims)
8181 allocate (db(nm))
8282 do n = 1 , nm - 1
@@ -89,7 +89,7 @@ pure subroutine dw_init(dw, dims)
8989 ! Initialises weights structure.
9090 type (array2d), allocatable , intent (in out ) :: dw(:)
9191 integer (ik), intent (in ) :: dims(:)
92- integer :: n, nm
92+ integer (ik) :: n, nm
9393 nm = size (dims)
9494 allocate (dw(nm))
9595 do n = 1 , nm - 1
0 commit comments