Opened 8 weeks ago

Closed 8 weeks ago

#1930 closed Enhancement (fixed)

Missing ln_top_euler control in trcnxt

Reported by: Tomas Lovato Owned by: nemo
Priority: minor Milestone:
Component: TOP Version: nemo_v3_6_STABLE
Keywords: TOP, Euler Cc:

Description (last modified by Nicolas MARTIN)

Context


Forced Euler integration for TOP variables using ln_top_euler is missing in trcnxt subroutine for both 3.6_stable and trunk

Changes


In the parsing options of TRP/trcnxt.F90 for neuler ln_top_euler should be added in the if..then statement, as in the following example fro v3.6

NEMOGCM/NEMO/TOP_SRC/TRP/trcnxt.F90
@@ -121,7 +121,7 @@ CONTAINS


       ! set time step size (Euler/Leapfrog)
-      IF( neuler == 0 .AND. kt ==  nittrc000 ) THEN  ;  r2dt(:) =     rdttrc(:)   ! at nittrc000             (Euler)
+      IF( (neuler == 0 .AND. kt == nittrc000) .OR. ln_top_euler ) THEN  ;  r2dt(:) =     rdttrc(:)   ! at nittrc000             (Euler)
       ELSEIF( kt <= nittrc000 + nn_dttrc )     THEN  ;  r2dt(:) = 2.* rdttrc(:)   ! at nit000 or nit000+1 (Leapfrog)
       ENDIF

@@ -131,11 +131,12 @@ CONTAINS
          ztrdt(:,:,:,:)  = trn(:,:,:,:)
       ENDIF
       ! Leap-Frog + Asselin filter time stepping
-      IF( neuler == 0 .AND. kt == nittrc000 ) THEN        ! Euler time-stepping at first time-step
+      IF( (neuler == 0 .AND. kt == nittrc000) .OR. ln_top_euler ) THEN        ! Euler time-stepping at first time-step
          !                                                ! (only swap)
          DO jn = 1, jptra
             DO jk = 1, jpkm1
                trn(:,:,jk,jn) = tra(:,:,jk,jn)
+               trb(:,:,jk,jn) = trn(:,:,jk,jn)
             END DO
          END DO
          !

For the trunk, as timestep is set outside trcnxt, only the second block need to be updated.


Commit History (3)

ChangesetAuthorTimeChangeLog
8402lovato2017-08-02T15:12:29+02:00

3.6_stable: Add control in CFCs time interpolation (#1930)

8399lovato2017-08-01T15:15:09+02:00

trunk: Add ln_top_euler control in trcnxt (#1930)

8398lovato2017-08-01T15:15:00+02:00

3.6_stable : Add ln_top_euler control in trcnxt (#1930)

Change History (2)

comment:1 Changed 8 weeks ago by Nicolas MARTIN

  • Description modified (diff)

comment:2 Changed 8 weeks ago by Tomas Lovato

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

The proposed solution was implemented in 3.6_stable at r8398 and in the trunk at r8399

Note: See TracTickets for help on using tickets.