1
1
module stdlib_experimental_io
2
- use iso_fortran_env, only: sp= >real32, dp= >real64 , qp= >real128
2
+ use iso_fortran_env, only: sp= >real32, dp= >real64, qp= >real128
3
3
implicit none
4
4
private
5
5
public :: loadtxt, savetxt
@@ -18,7 +18,6 @@ module stdlib_experimental_io
18
18
19
19
contains
20
20
21
- ! PUBLIC
22
21
subroutine sloadtxt (filename , d )
23
22
! Loads a 2D array from a text file.
24
23
!
@@ -45,12 +44,12 @@ subroutine sloadtxt(filename, d)
45
44
! ...
46
45
!
47
46
integer :: s
48
- integer :: nrow,ncol,i
47
+ integer :: nrow,ncol,i
49
48
50
49
open (newunit= s, file= filename, status= " old" )
51
50
52
51
! determine number of columns
53
- ncol= number_of_columns(s)
52
+ ncol = number_of_columns(s)
54
53
55
54
! determine number or rows
56
55
nrow = number_of_rows_numeric(s)
@@ -88,12 +87,12 @@ subroutine dloadtxt(filename, d)
88
87
! ...
89
88
!
90
89
integer :: s
91
- integer :: nrow,ncol,i
90
+ integer :: nrow,ncol,i
92
91
93
92
open (newunit= s, file= filename, status= " old" )
94
93
95
94
! determine number of columns
96
- ncol= number_of_columns(s)
95
+ ncol = number_of_columns(s)
97
96
98
97
! determine number or rows
99
98
nrow = number_of_rows_numeric(s)
@@ -131,12 +130,12 @@ subroutine qloadtxt(filename, d)
131
130
! ...
132
131
!
133
132
integer :: s
134
- integer :: nrow,ncol,i
133
+ integer :: nrow,ncol,i
135
134
136
135
open (newunit= s, file= filename, status= " old" )
137
136
138
137
! determine number of columns
139
- ncol= number_of_columns(s)
138
+ ncol = number_of_columns(s)
140
139
141
140
! determine number or rows
142
141
nrow = number_of_rows_numeric(s)
@@ -219,7 +218,6 @@ subroutine qsavetxt(filename, d)
219
218
end subroutine
220
219
221
220
222
- ! PRIVATE
223
221
integer function number_of_columns (s )
224
222
! determine number of columns
225
223
integer ,intent (in ):: s
0 commit comments