Opened 15 years ago

Closed 15 years ago

#386 closed defect (Fixed)

Input parameters scripts and the KEYWORD

Reported by: arango Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.3
Component: Nonlinear Version: 3.3
Keywords: Cc:

Description

In a recent forum post it was discussed about problem of decoding the KEYWORD in ROMS input parameters scripts processed by inp_par.F. I took a look at this problem and made decode_line more robust to process input lines with all kind of characters after the first comment character [CHAR(33)=!]. Now it is possible to have any kind of characters after the comment. For example:

          DT == 360.0d0  \TAB \TAB ! @ 1 day = 240 timesteps !&*==!!\TAB %%%:

Notice that now:

  • Any characters are allowed after the first commnent (!) character including equal sign (=), tabs (\TAB), and additonal comment (!) characters.
  • Tabs (\TAB) are allowed after the KEYWORD values. They are not allowed in a location before any of the KEYWORD values (numeric or string) because it may yield an incorrect line decoding.

Many thanks to Simon Spagnol, Mark Hadfield, and John Wilkin for reporting this problem.

Change History (1)

comment:1 by arango, 15 years ago

Resolution: Fixed
Status: newclosed
Type: bugdefect
Note: See TracTickets for help on using tickets.