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.
Changeset 2257 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP – NEMO

Ignore:
Timestamp:
2010-10-13T17:58:28+02:00 (14 years ago)
Author:
cetlod
Message:

Apply the modified leap-frog scheme on runoff & correct a bug on time stepping for hpg implicit case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trcnxt.F90

    r2240 r2257  
    120120         ztrdt(:,:,:,:)  = trn(:,:,:,:) 
    121121      ENDIF 
    122  
    123122      ! Leap-Frog + Asselin filter time stepping 
    124       IF( lk_vvl ) THEN   ;   CALL tra_nxt_vvl( kt, 'TRC', trb, trn, tra, jptra )      ! variable volume level (vvl)  
    125       ELSE                ;   CALL tra_nxt_fix( kt, 'TRC', trb, trn, tra, jptra )      ! fixed    volume level  
     123      IF( neuler == 0 .AND. kt == nit000 ) THEN        ! Euler time-stepping at first time-step 
     124         !                                             ! (only swap) 
     125         DO jn = 1, jptra 
     126            DO jk = 1, jpkm1 
     127               trn(:,:,jk,jn) = tra(:,:,jk,jn) 
     128            END DO 
     129         END DO 
     130         !                                               
     131      ELSE 
     132         ! Leap-Frog + Asselin filter time stepping 
     133         IF( lk_vvl ) THEN   ;   CALL tra_nxt_vvl( kt, 'TRC', trb, trn, tra, jptra )      ! variable volume level (vvl)  
     134         ELSE                ;   CALL tra_nxt_fix( kt, 'TRC', trb, trn, tra, jptra )      ! fixed    volume level  
     135         ENDIF 
    126136      ENDIF 
    127137 
Note: See TracChangeset for help on using the changeset viewer.