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 113 for trunk/NEMO/OPA_SRC/LDF – NEMO

Changeset 113 for trunk/NEMO/OPA_SRC/LDF


Ignore:
Timestamp:
2004-06-28T16:43:28+02:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE072 : ahtt is proportional to the cube of the maximum of the gridspacing in the to horizontal direction as in ldfdyn_c2d.h90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/LDF/ldftra_c2d.h90

    r3 r113  
    3535      INTEGER :: i1, i2, j1, j2 
    3636# endif 
     37      REAL(wp) ::   za00, zdx_max 
     38       
    3739      !!---------------------------------------------------------------------- 
    3840 
     
    4951      ENDIF 
    5052 
    51  
     53      zdx_max = MAXVAL( e1t(:,:) ) 
     54      IF( lk_mpp )   CALL mpp_max( zdx_max )   ! max over the global domain 
     55       
    5256      ! biharmonic operator : (T-point) 
    5357      ! ==================== 
     58      ! Here: ahtt is proportional to the cube of the maximum of the gridspacing 
     59      !       in the to horizontal direction 
     60       
     61      za00 = aht0 / ( zdx_max * zdx_max * zdx_max ) 
    5462 
    55       ahtt(:,:) = aht0                ! set ahtt at T-point (here no space variation) 
     63      ahtt(:,:) = za00 * e1t(:,:) * e1t(:,:) *e1t(:,:)      ! set ahtt at T-point  
    5664 
    5765      CALL lbc_lnk( ahtt, 'T', 1. )   ! Lateral boundary conditions on ( ahtt ) 
     
    6977      ! ================== 
    7078 
    71       ahtu(:,:) = aht0                ! set ahtu = ahtv at u- and v-points, 
    72       ahtv(:,:) = aht0                ! and ahtw at w-point (idem T-point) 
    73       ahtw(:,:) = aht0                ! (here no space variation) 
     79      za00 = aht0 / zdx_max 
     80 
     81      ahtu(:,:) = za00 * e1u(:,:)               ! set ahtu = ahtv at u- and v-points, 
     82      ahtv(:,:) = za00 * e1f(:,:)               ! and ahtw at w-point (idem T-point) 
     83      ahtw(:,:) = za00 * e1t(:,:)               !  
    7484 
    7585      CALL lbc_lnk( ahtu, 'U', 1. )   ! Lateral boundary conditions 
Note: See TracChangeset for help on using the changeset viewer.