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.
#1733 (Initialization of av*_k in tke) – NEMO

Opened 8 years ago

Closed 7 years ago

Last modified 2 years ago

#1733 closed Bug (fixed)

Initialization of av*_k in tke

Reported by: rpennel Owned by: emanuelaclementi
Priority: low Milestone:
Component: OCE Version: v3.6
Severity: Keywords: OPA TKE v3.6
Cc:

Description

Context

1) In zdftke.F90 (possibly also in other turbulence schemes) avt_k, avm_k, avmu_k and avmv_k seem not to be initialized at nit000=0 in tke_rst when coefficients are read in a restart file or when no restart is present. The initialization is only done in one case when a restart file is present but tke scheme was not used in the previous run.

2) In the case of no restart file, the assignation of Kz to the background value is done twice, once in zdf_tke_init, once in tke_rst.

Fix

1) Move the avt_k=avt sequence after the IF(ln_rstart) condition (before the WRITE part of the function)

2) Delete one of the 2 assignations.

Commit History (1)

ChangesetAuthorTimeChangeLog
8290emanuelaclementi2017-07-06T10:40:38+02:00

#1733 bug fixed for Initialization of av*_k in tke

Change History (7)

comment:1 Changed 8 years ago by nicolasmartin

  • Keywords TKE added; tke removed

comment:2 Changed 8 years ago by nicolasmartin

  • Keywords nemo_v3_6* added

comment:3 Changed 7 years ago by clevy

  • Owner changed from nemo to emanuelaclementi

comment:4 Changed 7 years ago by emanuelaclementi

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

fixed bug for Initialization of av*_k in tke

comment:5 Changed 6 years ago by nemo

  • Keywords release-3.6* added; nemo_v3_6* removed

comment:6 Changed 6 years ago by nemo

  • Keywords release-3.6* removed

comment:7 Changed 2 years ago by nemo

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