Skip to content

Commit

Permalink
Merge pull request #688 from St-Maxwell/main
Browse files Browse the repository at this point in the history
Small fix for fpm_model
  • Loading branch information
LKedward authored Apr 20, 2022
2 parents c841456 + f2a2ad8 commit 67132c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fpm_source_parsing.f90
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ function parse_f_source(f_filename,error) result(f_source)
file_lines_lower(i)%s=adjustl(lower(file_lines_lower(i)%s))
enddo

! Ignore empty files, returned as FPM_UNIT_UNKNOWN
if (len_trim(file_lines_lower) < 1) return

f_source%digest = fnv_1a(file_lines)
! fnv_1a can only be applied to non-zero-length arrays
if (len_trim(file_lines_lower) > 0) f_source%digest = fnv_1a(file_lines)

do pass = 1,2
n_use = 0
Expand Down

0 comments on commit 67132c4

Please sign in to comment.