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 2382 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/C1D_SRC/dynnxt_c1d.F90 – NEMO

Ignore:
Timestamp:
2010-11-13T14:08:12+01:00 (13 years ago)
Author:
gm
Message:

v3.3beta: C1D - bug correction to compile with key_c1d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/C1D_SRC/dynnxt_c1d.F90

    r2287 r2382  
    1111   !!   'key_c1d'                                          1D Configuration 
    1212   !!----------------------------------------------------------------------   
    13    !!---------------------------------------------------------------------- 
    1413   !!   dyn_nxt_c1d : update the horizontal velocity from the momentum trend 
    1514   !!---------------------------------------------------------------------- 
     
    2726   !! NEMO/C1D 3.3 , NEMO Consortium (2010) 
    2827   !! $Id$  
    29    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     28   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    3029   !!---------------------------------------------------------------------- 
    31  
    3230CONTAINS 
    3331 
     
    3634      !!                  ***  ROUTINE dyn_nxt_c1d  *** 
    3735      !!                    
    38       !! ** Purpose :   Compute the after horizontal velocity from the  
    39       !!      momentum trend. 
     36      !! ** Purpose :   Compute the after horizontal velocity from the momentum trend. 
    4037      !! 
    4138      !! ** Method  :   Apply lateral boundary conditions on the trends (ua,va)  
     
    6158         IF(lwp) WRITE(numout,*) 
    6259         IF(lwp) WRITE(numout,*) 'dyn_nxt_c1d : time stepping on 1D configuation' 
    63          IF(lwp) WRITE(numout,*) '~~~~~~~' 
     60         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~' 
    6461      ENDIF 
    6562 
    66       ! Local constant initialization 
    67       z2dt = 2. * rdt 
     63      z2dt = 2._wp * rdt                                                   ! Local constant initialization 
    6864      IF( neuler == 0 .AND. kt == nit000 )  z2dt = rdt 
    6965 
    70       ! Lateral boundary conditions on ( ua, va ) 
    71       CALL lbc_lnk( ua, 'U', -1. ) 
    72       CALL lbc_lnk( va, 'V', -1. ) 
     66      CALL lbc_lnk( ua, 'U', -1. )   ;   CALL lbc_lnk( va, 'V', -1. )      ! Lateral boundary conditions 
    7367 
    74       DO jk = 1, jpkm1      ! Next Velocity 
     68      DO jk = 1, jpkm1                                                     ! Next Velocity 
    7569         ua(:,:,jk) = ( ub(:,:,jk) + z2dt * ua(:,:,jk) ) * umask(:,:,jk) 
    7670         va(:,:,jk) = ( vb(:,:,jk) + z2dt * va(:,:,jk) ) * vmask(:,:,jk) 
    7771      END DO  
    7872  
    79       DO jk = 1, jpkm1      ! Time filter and swap of dynamics arrays 
    80          IF( neuler == 0 .AND. kt == nit000 ) THEN      ! Euler (forward) time stepping 
     73      DO jk = 1, jpkm1                                                     ! Time filter and swap of dynamics arrays 
     74         IF( neuler == 0 .AND. kt == nit000 ) THEN                               ! Euler (forward) time stepping 
    8175             ub(:,:,jk) = un(:,:,jk) 
    8276             vb(:,:,jk) = vn(:,:,jk) 
    8377             un(:,:,jk) = ua(:,:,jk) 
    8478             vn(:,:,jk) = va(:,:,jk) 
    85          ELSE                                           ! Leap-frog time stepping 
     79         ELSE                                                                    ! Leap-frog time stepping 
    8680             ub(:,:,jk) = atfp * ( ub(:,:,jk) + ua(:,:,jk) ) + atfp1 * un(:,:,jk) 
    8781             vb(:,:,jk) = atfp * ( vb(:,:,jk) + va(:,:,jk) ) + atfp1 * vn(:,:,jk) 
Note: See TracChangeset for help on using the changeset viewer.