New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#1758 (namelist mangling: cfg does not always override ref) – NEMO

Opened 8 years ago

Closed 7 years ago

Last modified 2 years ago

#1758 closed Bug (invalid)

namelist mangling: cfg does not always override ref

Reported by: hulten Owned by: nemo
Priority: normal Milestone: 2015 release-3.6
Component: tools Version: v3.6
Severity: Keywords: Tools mangling namelists v3.6
Cc:

Description

namelist_cfg should override any values in namelist_ref, but doesn't here:

$ grep -i ln_zps namelist_{ref,cfg}
namelist_ref:   ln_zps      = .true.    !  z-coordinate - partial steps   (T/F)
namelist_cfg:   ln_zps      = .false.    !  z-coordinate - partial steps   (T/F)
$ grep --text -i ln_zps output.namelist.dyn 
 LN_ZPS  = T,

I think that the LN_ZPS should have been set to false.
I have produced this with svn 5283.

Commit History (0)

(No commits)

Attachments (3)

namelist_ref (90.6 KB) - added by hulten 8 years ago.
namelist_cfg (9.7 KB) - added by hulten 8 years ago.
output.namelist.dyn (25.5 KB) - added by hulten 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by hulten

Changed 8 years ago by hulten

Changed 8 years ago by hulten

comment:1 Changed 7 years ago by acc

  • Resolution set to invalid
  • Status changed from new to closed

The error here is in the user's namelist_cfg. The name list contains 2 namzgr blocks; an empty one near the top and a populated one near the bottom. The user expects the second to have been used but the empty block precedes it. Since this contains no entries the reference settings persist.

comment:2 Changed 7 years ago by nemo

  • Keywords namelists added; namelist removed

comment:3 Changed 6 years ago by nemo

  • Keywords release-3.6* added

comment:4 Changed 6 years ago by nemo

  • Keywords release-3.6* removed

comment:5 Changed 2 years ago by nemo

  • Keywords Tools v3.6 added
Note: See TracTickets for help on using tickets.