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 253 for trunk/NEMO/OPA_SRC/opa.F90 – NEMO

Ignore:
Timestamp:
2005-08-30T15:26:11+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_update_001 : Add the 1D configuration possibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/opa.F90

    r247 r253  
    3333   USE ldftra          ! lateral diffusivity setting    (ldftra_init routine) 
    3434   USE zdfini 
    35 !!!USE zdf_oce         ! ocean vertical physics            (zdf_init routine) 
    3635 
    3736   USE phycst          ! physical constant                  (par_cst routine) 
     
    4746 
    4847   USE step            ! OPA time-stepping                  (stp     routine) 
     48   USE ini1d           ! re-initialization of u-v mask for the 1D configuration 
     49   USE dyncor1d        ! Coriolis factor at T-point 
     50   USE step1d          ! Time stepping loop for the 1D configuration 
    4951 
    5052   IMPLICIT NONE 
     
    9395      !!   9.0  !  02-08  (G. Madec)  F90: Free form and modules 
    9496      !!    "   !  04-08  (C. Talandier) New trends organization 
     97      !!    "   !  05-06  (C. Ethe) Add the 1D configuration possibility 
    9598      !!---------------------------------------------------------------------- 
    9699      !! * Local declarations 
     
    166169      CALL dom_init                         ! Domain 
    167170 
    168       IF( lk_obc    )   CALL obc_init        ! Open boundaries  
     171      IF( lk_cfg_1d )   CALL fcorio_1d      ! redefine Coriolis at T-point 
     172 
     173      IF( lk_obc    )   CALL obc_init       ! Open boundaries  
    169174 
    170175      CALL solver_init                      ! Elliptic solver 
     
    178183                       CALL bn2( tb, sb, rn2 )              ! before Brunt-Vaisala frequency 
    179184 
    180       IF( lk_zps    )   CALL zps_hde( nit000, tb, sb, rhd,  &  ! Partial steps: before Horizontal DErivative 
    181                                           gtu, gsu, gru, &  ! of t, s, rd at the bottom ocean level 
    182                                           gtv, gsv, grv ) 
     185      IF( lk_zps .AND. .NOT. lk_cfg_1d )   & 
     186         &             CALL zps_hde( nit000, tb, sb, rhd,  &  ! Partial steps: before Horizontal DErivative 
     187                                            gtu, gsu, gru, &  ! of t, s, rd at the bottom ocean level 
     188                                            gtv, gsv, grv ) 
    183189 
    184190!!add 
     
    236242      IF(lwp) WRITE(numout,cform_aaa)       ! Flag AAAAAAA 
    237243 
    238       istp = nit000 
    239       DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
    240          CALL stp( istp ) 
    241          istp = istp + 1 
    242       END DO 
     244      IF( lk_cfg_1d  )  THEN  
     245         CALL init_1d 
     246         istp = nit000 
     247         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
     248            CALL stp_1d( istp ) 
     249            istp = istp + 1 
     250         END DO 
     251      ELSE 
     252         istp = nit000 
     253         DO WHILE ( istp <= nitend .AND. nstop == 0 ) 
     254            CALL stp( istp ) 
     255            istp = istp + 1 
     256         END DO 
     257      ENDIF 
    243258      !                                     ! ========= ! 
    244259      !                                     !  Job end  ! 
Note: See TracChangeset for help on using the changeset viewer.