Skip to content

Commit

Permalink
Workaround for gfortran-10 bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
LKedward committed Jan 22, 2021
1 parent e0608d9 commit 8c9d2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ogpf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,7 @@ subroutine splitstring2array(strin, strarray, delimiter)
strtmp=trim (adjustl(strin) )

! 2. count the number substrings separated by delimiter
n = count( [ (strtmp(i:i), i=1, len_trim(strtmp)) ] == delimiter_)
n = count( [ (strtmp(i:i)== delimiter_, i=1, len_trim(strtmp)) ] )

! 3. allocate the output string array
allocate(strarray(n+1))
Expand Down

0 comments on commit 8c9d2de

Please sign in to comment.