Skip to content

Commit

Permalink
Improved "form:a" in fget
Browse files Browse the repository at this point in the history
  • Loading branch information
rneder committed Jan 16, 2025
1 parent e0ea506 commit 793b09c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib_f90/fput_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,13 @@ SUBROUTINE do_fget (zeile, lp)
igl = lpara(i) + 2
lp = LEN_TRIM(line)
ELSEIF(fpara(i)(1:1) == 'a') THEN
if(len_trim(fpara(i))>1) then
READ(fpara(i)(2:LEN_TRIM(fpara(i))),*) length
k2 = k2 + length
line = cpara(i)(1:lpara(i)) //' = '''//string(k1:k2)//''''
else
line = cpara(i)(1:lpara(i)) //' = '''//string(k1:len_trim(string))//''''
endif
igl = lpara(i) + 2
lp = LEN_TRIM(line)
ENDIF
Expand Down

0 comments on commit 793b09c

Please sign in to comment.