Opened 6 years ago

Closed 6 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: release-3.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 6 years ago by gm

  • Owner changed from NEMO team to gm

comment:2 Changed 6 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.