Skip to content

ESM1.6: Abort for failed coupling nml #60

@blimlim

Description

@blimlim

ESM1.6 very occasionally fails with the error

 ice: error reading coupling namelist in "input_ice.nml"

See here for an example. Rerunning usually resolves the issue, however it seems to stem from a failure when opening the input_ice.nml namelist.

open(unit=nu_nml,file="input_ice.nml",form="formatted",status="old",iostat=nml_error)
!
if (my_task == master_task) then
write(ice_stdout,*)'CICE: input_ice.nml opened at unit = ', nu_nml
endif
!
if (nml_error /= 0) then
nml_error = -1
else
nml_error = 1
endif

When the namelist open fails, nml_error is set to -1. This then skips the namelist reading and triggers the error reading coupling namelist in "input_ice.nml" further down.

We should abort directly after the failed open to make the cause of the crash clearer.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions