New URL for NEMO forge!

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.
#1361 (initialization of TKE when missing in the restart) – NEMO

Opened 9 years ago

Closed 9 years ago

#1361 closed Bug (fixed)

initialization of TKE when missing in the restart

Reported by: avidard Owned by: gm
Priority: low Milestone:
Component: OCE Version: v3.4
Severity: Keywords:


from 3.4 onward (probably before)

In the unlikely event you want to use tke while it is not in the restart, the code will do a spinup like

ELSE                                     ! No TKE array found: initialisation

IF(lwp) WRITE(numout,*) ' ===>>>> : previous run without tke scheme, en computed by iterative loop'
en (:,:,:) = rn_emin * tmask(:,:,:)
CALL tke_avn                               ! recompute avt, avm, avmu, avmv and dissl (approximation)
DO jit = nit000 + 1, nit000 + 10   ;   CALL zdf_tke( jit )   ;   END DO


however zdf_tke starts by

IF( kt /= nit000 ) THEN   ! restore before value to compute tke

avt (:,:,:) = avt_k (:,:,:)
avm (:,:,:) = avm_k (:,:,:)
avmu(:,:,:) = avmu_k(:,:,:)
avmv(:,:,:) = avmv_k(:,:,:)


by starting the loop of the spinup at nit000+1 the av*_k are not initialized

Commit History (2)


bugfix for ticket #1361


bugfix for ticket #1361

Change History (2)

comment:1 Changed 9 years ago by gm

  • Owner changed from NEMO team to gm

comment:2 Changed 9 years ago by cbricaud

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

avt_k, avm_k ,avmu_k, avmv_k need to be initialised by avt, avm,avmu, avmv before call to tke_avn.

bugfix done for zdftke and zdfgls in NEMO_3.4_1:

and zdftke for NEMO_3.6_beta ( zdfgls was ok) :

Note: See TracTickets for help on using tickets.