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.
#1738 (Fixed selection of the surface boundary condition in module 'sbcmod_tam') – NEMO

Opened 8 years ago

Closed 6 years ago

Last modified 2 years ago

#1738 closed Bug (fixed)

Fixed selection of the surface boundary condition in module 'sbcmod_tam'

Reported by: sam Owned by: systeam
Priority: low Milestone:
Component: TAM Version: v3.4
Severity: minor Keywords: TAM v3.4
Cc:

Description (last modified by nicolasmartin)

Context

The selection of the formulation of the surface boundary condition (SBC) in subroutines 'sbc_tan' and 'sbc_adj' appears to be fixed, irrespective of the variant of SBC selected in namelist 'namsbc'.

Analysis

Module variable 'nsbc' of module 'sbcmod_tam' remains unassigned in subroutine 'sbc_init_tam'. In test runs using the current version of module 'sbcmod_tam', the value of 'nsbc' was found to be zero (it remains unclear whether a default value of zero for 'nsbc' is ensured by the compiler or not), which resulted in the fixed selection of the SBC formulation of the GYRE configuration.

Fix

In module 'sbcmod_tam', the variable 'nsbc' should be explicitly initialised, and the determination of the value for 'nsbc' should be similar to that of the value for 'nsbc' in subroutine 'sbc_init' of module 'sbcmod'.

Commit History (1)

ChangesetAuthorTimeChangeLog
11806smueller2019-10-25T17:43:44+02:00

Enabling of the selection of the flux formulation as surface boundary condition (ln_flx set to .TRUE. in namelist namsbc) and elimination of the use of an unassigned variable (variable nsbc of module sbcmod_tam) in NEMOTAM (application of the patch attached to ticket #1738)

Attachments (1)

sbcmod_tam.F90.diff (760 bytes) - added by sam 6 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 8 years ago by nicolasmartin

  • Keywords TAM added

comment:2 Changed 8 years ago by nicolasmartin

  • Keywords nemo_v3_4* added

comment:3 Changed 8 years ago by nicolasmartin

  • Keywords nemo_v3_4 added

comment:4 Changed 8 years ago by nicolasmartin

  • Keywords nemo_v3_4 removed

comment:5 Changed 7 years ago by nicolasmartin

  • Description modified (diff)
  • Owner nemo deleted
  • Status changed from new to assigned

comment:6 Changed 7 years ago by nicolasmartin

  • Status changed from assigned to new

comment:7 Changed 6 years ago by nemo

  • Keywords release-3.4* added; nemo_v3_4* removed

comment:8 Changed 6 years ago by nemo

  • Keywords release-3.4* removed

comment:9 Changed 6 years ago by nicolasmartin

  • Severity set to minor

The 3.4 release is no longer supported: if relevant the version at stake must be updated (release-3.6 or trunk for upcoming 4.0), if not close the ticket.

Changed 6 years ago by sam

comment:10 Changed 6 years ago by sam

The unassigned-variable bug described in this ticket can be fixed by using the attached diff file 'sbcmod_tam.F90.diff' to patch 'sbcmod_tam.F90'. This patch enables the selection of the flux SBC formulation as an alternative to the GYRE SBC formulation.

comment:11 Changed 6 years ago by nicolasmartin

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

Thanks for sharing your own fix .
Arguably we are not going to commit it to the release version of the code so I close the ticket.

comment:12 Changed 5 years ago by smueller

In 11806:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:13 Changed 2 years ago by nemo

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