Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#1733 closed Bug (fixed)

Initialization of av*_k in tke

Reported by: rpennel Owned by: emanuelaclementi
Priority: low Milestone:
Component: OCE Version: release-3.6
Severity: Keywords: TKE
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 (6)

comment:1 Changed 4 years ago by nicolasmartin

  • Keywords TKE added; tke removed

comment:2 Changed 4 years ago by nicolasmartin

  • Keywords nemo_v3_6* added

comment:3 Changed 3 years ago by clevy

  • Owner changed from nemo to emanuelaclementi

comment:4 Changed 3 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 3 years ago by nemo

  • Keywords release-3.6* added; nemo_v3_6* removed

comment:6 Changed 3 years ago by nemo

  • Keywords release-3.6* removed
Note: See TracTickets for help on using tickets.