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 10874 for NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/OCE/DYN/dynldf.F90 – NEMO

Ignore:
Timestamp:
2019-04-15T15:57:37+02:00 (5 years ago)
Author:
davestorkey
Message:

branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps : Revert all changes so far in preparation for implementation of new design.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/OCE/DYN/dynldf.F90

    r10806 r10874  
    4343CONTAINS 
    4444 
    45    SUBROUTINE dyn_ldf( kt, ktlev1, ktlev2, pu_rhs, pv_rhs ) 
     45   SUBROUTINE dyn_ldf( kt ) 
    4646      !!---------------------------------------------------------------------- 
    4747      !!                  ***  ROUTINE dyn_ldf  *** 
     
    4949      !! ** Purpose :   compute the lateral ocean dynamics physics. 
    5050      !!---------------------------------------------------------------------- 
    51       INTEGER, INTENT(in) ::   kt               ! ocean time-step index 
    52       INTEGER, INTENT(in) ::   ktlev1, ktlev2   ! time level index for source terms 
    53       REAL(wp), INTENT(inout), DIMENSION(jpi,jpj,jpk) :: pu_rhs, pv_rhs ! momentum trends 
     51      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
    5452      ! 
    5553      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::   ztrdu, ztrdv 
     
    6058      IF( l_trddyn )   THEN                      ! temporary save of momentum trends 
    6159         ALLOCATE( ztrdu(jpi,jpj,jpk) , ztrdv(jpi,jpj,jpk) ) 
    62          ztrdu(:,:,:) = pu_rhs(:,:,:)  
    63          ztrdv(:,:,:) = pv_rhs(:,:,:)  
     60         ztrdu(:,:,:) = ua(:,:,:)  
     61         ztrdv(:,:,:) = va(:,:,:)  
    6462      ENDIF 
    6563 
    6664      SELECT CASE ( nldf_dyn )                   ! compute lateral mixing trend and add it to the general trend 
    6765      ! 
    68       CASE ( np_lap   )    ;   CALL dyn_ldf_lap( kt, ktlev1, ktlev2, uu(:,:,:,ktlev1), vv(:,:,:,ktlev1), pu_rhs, pv_rhs, 1 )      ! iso-level    laplacian 
     66      CASE ( np_lap   )    ;   CALL dyn_ldf_lap( kt, ub, vb, ua, va, 1 )      ! iso-level    laplacian 
    6967      CASE ( np_lap_i )    ;   CALL dyn_ldf_iso( kt )                         ! rotated      laplacian 
    70       CASE ( np_blp   )    ;   CALL dyn_ldf_blp( kt, ktlev1, ktlev2, uu(:,:,:,ktlev1), vv(:,:,:,ktlev1), pu_rhs, pv_rhs    )      ! iso-level bi-laplacian 
     68      CASE ( np_blp   )    ;   CALL dyn_ldf_blp( kt, ub, vb, ua, va    )      ! iso-level bi-laplacian 
    7169      ! 
    7270      END SELECT 
    7371 
    7472      IF( l_trddyn ) THEN                        ! save the horizontal diffusive trends for further diagnostics 
    75          ztrdu(:,:,:) = pu_rhs(:,:,:) - ztrdu(:,:,:) 
    76          ztrdv(:,:,:) = pv_rhs(:,:,:) - ztrdv(:,:,:) 
     73         ztrdu(:,:,:) = ua(:,:,:) - ztrdu(:,:,:) 
     74         ztrdv(:,:,:) = va(:,:,:) - ztrdv(:,:,:) 
    7775         CALL trd_dyn( ztrdu, ztrdv, jpdyn_ldf, kt ) 
    7876         DEALLOCATE ( ztrdu , ztrdv ) 
Note: See TracChangeset for help on using the changeset viewer.