Skip to content

Commit

Permalink
Removed optional argument to extract_word()
Browse files Browse the repository at this point in the history
- Removed debugging copied in from draft of segment code
  • Loading branch information
adcroft committed Jan 11, 2017
1 parent cb4a3dc commit e4e92e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/MOM_open_boundary.F90
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,10 @@ subroutine parse_segment_data_str(segment_str, var, value, filenam, fieldnam, fi
if (PRESENT(debug)) dbg=debug

do while (continue)
word1 = extract_word(segment_str,',',nfields+1,debug=dbg)
word1 = extract_word(segment_str,',',nfields+1)
if (trim(word1) == '') exit
nfields=nfields+1
word2 = extract_word(word1,'=',1,debug=dbg)
word2 = extract_word(word1,'=',1)
flds(nfields) = trim(word2)
enddo

Expand Down Expand Up @@ -850,12 +850,12 @@ subroutine parse_segment_data_str(segment_str, var, value, filenam, fieldnam, fi
endif

! Process first word which will start with the fieldname
word3 = extract_word(segment_str,',',m,debug=dbg)
word1 = extract_word(word3,':',1,debug=dbg)
word3 = extract_word(segment_str,',',m)
word1 = extract_word(word3,':',1)
! if (trim(word1) == '') exit
word2 = extract_word(word1,'=',1,debug=dbg)
word2 = extract_word(word1,'=',1)
if (trim(word2) == trim(var)) then
method=trim(extract_word(word1,'=',2,debug=dbg))
method=trim(extract_word(word1,'=',2))
lword=len_trim(method)
if (method(lword-3:lword) == 'file') then
! raise an error id filename/fieldname not in argument list
Expand Down

0 comments on commit e4e92e6

Please sign in to comment.