Skip to content

Commit 26010e7

Browse files
committed
some minor efficiency improvements
1 parent d5395c1 commit 26010e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/csv_module.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module csv_module
4949
! for reading a csv file:
5050
integer :: n_rows = 0 !! number of rows in the file
5151
integer :: n_cols = 0 !! number of columns in the file
52-
integer :: chunk_size = 100 !! for expanding vectors
52+
integer :: chunk_size = 1024 !! for expanding vectors
5353
type(csv_string),dimension(:),allocatable :: header !! the header
5454
type(csv_string),dimension(:,:),allocatable :: csv_data !! the data in the file
5555

@@ -675,8 +675,8 @@ subroutine get_csv_data_as_str(me,csv_data,status_ok)
675675
! size the output array:
676676
allocate(csv_data(me%n_rows,me%n_cols))
677677
! convert each element to a string:
678-
do concurrent (i=1:me%n_rows)
679-
do concurrent (j=1:me%n_cols)
678+
do concurrent (j=1:me%n_cols)
679+
do concurrent (i=1:me%n_rows)
680680
csv_data(i,j) = me%csv_data(i,j)%str
681681
end do
682682
end do

0 commit comments

Comments
 (0)