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 5883 for branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DOM – NEMO

Ignore:
Timestamp:
2015-11-13T08:01:08+01:00 (9 years ago)
Author:
gm
Message:

#1613: vvl by default: TRA/TRC remove optimization associated with linear free surface

Location:
branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DOM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r5866 r5883  
    103103      !              !==  time varying part of coordinate system  ==! 
    104104      ! 
    105       IF( .NOT.ln_linssh ) THEN                 ! time varying : initialize before/now/after variables 
    106          ! 
    107          CALL dom_vvl_init  
    108          ! 
    109       ELSE                                      ! Fix in time : set to the reference one for all 
     105      IF( ln_linssh ) THEN          ! Fix in time : set to the reference one for all 
    110106         !       before        !          now          !       after         ! 
    111107         ;  gdept_b = gdept_0  ;   gdept_n = gdept_0   !        ---          ! depth of grid-points 
     
    134130         ! 
    135131         CALL wrk_dealloc( jpi,jpj,   z1_hu_0, z1_hv_0 ) 
     132         ! 
     133      ELSE                         ! time varying : initialize before/now/after variables 
     134         ! 
     135         CALL dom_vvl_init  
     136         ! 
    136137      ENDIF 
    137138      ! 
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DOM/domvvl.F90

    r5866 r5883  
    267267      !! Reference  : Leclair, M., and Madec, G. 2011, Ocean Modelling. 
    268268      !!---------------------------------------------------------------------- 
    269       REAL(wp), POINTER, DIMENSION(:,:,:) :: ze3t 
    270       REAL(wp), POINTER, DIMENSION(:,:  ) :: zht, z_scale, zwu, zwv, zhdiv 
    271       !! * Arguments 
    272       INTEGER, INTENT( in )                  :: kt                    ! time step 
    273       INTEGER, INTENT( in ), OPTIONAL        :: kcall                 ! optional argument indicating call sequence 
    274       !! * Local declarations 
     269      INTEGER, INTENT( in )           ::   kt      ! time step 
     270      INTEGER, INTENT( in ), OPTIONAL ::   kcall   ! optional argument indicating call sequence 
     271      ! 
    275272      INTEGER                                :: ji, jj, jk            ! dummy loop indices 
    276273      INTEGER , DIMENSION(3)                 :: ijk_max, ijk_min      ! temporary integers 
     
    278275      REAL(wp)                               :: z_tmin, z_tmax        ! temporary scalars 
    279276      LOGICAL                                :: ll_do_bclinic         ! temporary logical 
    280       !!---------------------------------------------------------------------- 
     277      REAL(wp), POINTER, DIMENSION(:,:,:) :: ze3t 
     278      REAL(wp), POINTER, DIMENSION(:,:  ) :: zht, z_scale, zwu, zwv, zhdiv 
     279      !!---------------------------------------------------------------------- 
     280      ! 
     281      IF( ln_linssh )   RETURN      ! No calculation in linear free surface 
    281282      ! 
    282283      IF( nn_timing == 1 )  CALL timing_start('dom_vvl_sf_nxt') 
     
    579580      REAL(wp) ::   zcoef        ! local scalar 
    580581      !!---------------------------------------------------------------------- 
    581  
     582      ! 
     583      IF( ln_linssh )   RETURN      ! No calculation in linear free surface 
     584      ! 
    582585      IF( nn_timing == 1 )  CALL timing_start('dom_vvl_sf_swp') 
    583586      ! 
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DOM/istate.F90

    r5866 r5883  
    122122            ENDIF 
    123123         ENDIF 
    124          !    
     124         ! 
     125!!gm This is to be changed !!!! 
    125126         ! - ML - sshn could be modified by istate_eel, so that initialization of e3t_b is done here 
    126127         IF( .NOT.ln_linssh ) THEN 
     
    129130            END DO 
    130131         ENDIF 
     132!!gm  
    131133         !  
    132134      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.