Opened 15 years ago

Closed 15 years ago

#299 closed bug (Fixed)

"Illegal model configuration" message when input file missing

Reported by: m.hadfield Owned by: arango
Priority: minor Milestone: Release ROMS/TOMS 3.2
Component: Nonlinear Version: 3.2
Keywords: Cc:

Description (last modified by arango)

When ROMS (the Nonlinear model) cannot find an input file, it exits, but before it does, CHECKDEFS reports an Illegal model configuration, eg:

 READ_PHYPAR - could not find input file:  stations.in

 Elapsed CPU time (seconds):

 Thread #  0 CPU:       0.063
 Total:                 0.063

 Nonlinear model elapsed time profile:

                                              Total:         0.000    0.0000

 All percentages are with respect to total time =            0.063

 ROMS/TOMS - Output NetCDF summary for Grid 01:

 ROMS/TOMS - Configuration error ..... exit_flag:   5


 ERROR: CHECKDEFS - Illegal model configuration.

When the missing file is supplied, it runs normally.

The Illegal model configuration message seems a bit misleading, and I think this behaviour is new. Is it intentional?

Change History (1)

comment:1 by arango, 15 years ago

Description: modified (diff)
Resolution: Fixed
Status: newclosed

OK, I cleaned a little that logic. We need to trap any error in ROMS with exit_flag, so we can have a smooth termination procedure in parallel applications, coupling models set-up, nested grids, etc. Recently, I added more exit_flag statements to inp_par.F

Note: See TracTickets for help on using tickets.