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 503 for trunk/NEMO/OPA_SRC/DYN/dynspg_flt_jki.F90 – NEMO

Ignore:
Timestamp:
2006-09-27T10:52:29+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_064 : CT : general trends update including the addition of mean windows analysis possibility in the mixed layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DYN/dynspg_flt_jki.F90

    r474 r503  
    99   !!   'key_mpp_omp'                              j-k-i loop (vector opt.) 
    1010   !!---------------------------------------------------------------------- 
     11   !!---------------------------------------------------------------------- 
    1112   !!   dyn_spg_flt_jki : Update the momentum trend with the surface pressure 
    1213   !!                     gradient for the free surf. constant volume case 
    1314   !!                     with auto-tasking (j-slab) (no vectior opt.) 
    1415   !!---------------------------------------------------------------------- 
    15    !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    16    !! $Header$  
    17    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    18    !!---------------------------------------------------------------------- 
    19    !! * Modules used 
    2016   USE oce             ! ocean dynamics and tracers  
    2117   USE dom_oce         ! ocean space and time domain 
     
    5147   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    5248   !! $Header$  
    53    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
     49   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5450   !!---------------------------------------------------------------------- 
    5551 
     
    10096      !! ** Action : - Update (ua,va) with the surf. pressure gradient trend 
    10197      !! 
    102       !! References : 
    103       !!      Roullet and Madec 1999, JGR. 
    104       !! 
    105       !! History : 
    106       !!        !  98-05 (G. Roullet)  Original code 
    107       !!        !  98-10 (G. Madec, M. Imbard)  release 8.2 
    108       !!   8.5  !  02-08 (G. Madec)  F90: Free form and module 
    109       !!        !  02-11 (C. Talandier, A-M Treguier) Open boundaries 
    110       !!   9.0  !  04-08 (C. Talandier) New trends organization 
    111       !!    "   !  05-11  (V. Garnier) Surface pressure gradient organization 
     98      !! References : Roullet and Madec 1999, JGR. 
    11299      !!--------------------------------------------------------------------- 
    113       !! * Arguments 
    114100      INTEGER, INTENT( in ) ::   kt          ! ocean time-step index 
    115       INTEGER, INTENT( out ) ::   kindic     ! solver convergence flag 
    116                                              ! if the solver doesn t converge 
    117                                              ! the flag is < 0 
    118       !! * Local declarations 
     101      INTEGER, INTENT( out ) ::   kindic     ! solver convergence flag, <0 if the solver doesn t converge 
     102      !! 
    119103      INTEGER  ::   ji, jj, jk               ! dummy loop indices 
    120104      REAL(wp) ::   &              ! temporary scalars 
     
    154138            spgv(ji,jj) = - grav * ( sshn(ji  ,jj+1) - sshn(ji,jj) ) / e2v(ji,jj) 
    155139         END DO  
    156  
    157140         !  Add the surface pressure trend to the general trend 
    158141         DO jk = 1, jpkm1 
     
    162145            END DO 
    163146         END DO 
    164  
    165147         ! Evaluate the masked next velocity (effect of the additional force not included) 
    166148         DO jk = 1, jpkm1 
     
    170152            END DO 
    171153         END DO 
    172  
    173154         !                                             ! =============== 
    174155      END DO                                           !   End of slab 
     
    202183            spgv(ji,jj) = 0.e0 
    203184         END DO 
    204  
    205185         ! vertical sum 
    206186         DO jk = 1, jpk 
     
    210190            END DO 
    211191         END DO 
    212  
    213192         ! transport: multiplied by the horizontal scale factor 
    214193         DO ji = 2, jpim1 
     
    216195            spgv(ji,jj) = spgv(ji,jj) * e1v(ji,jj) 
    217196         END DO 
    218  
    219197         !                                             ! =============== 
    220198      END DO                                           !   End of slab 
     
    302280            WRITE(ctmp1,*) ' ~~~~~~~~~~~~~~~~                not = ', nsolv 
    303281            CALL ctl_stop( ' dyn_spg_flt_jki : e r r o r, nsolv = 1, 2, 3 or 4', ctmp1 ) 
    304       ENDIF 
    305  
    306       !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,synchro,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
    307  
    308 !CDIR PARALLEL DO 
    309 !$OMP PARALLEL DO 
     282         ENDIF 
     283      ENDIF 
     284 
     285      !,,,,,,,,,,,,,,,,,,,,,,,,,,,,,synchro,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 
     286 
    310287      !                                                ! =============== 
    311288      DO jj = 2, jpjm1                                 !  Vertical slab 
     
    353330         ! 8. Sea surface elevation time stepping 
    354331         ! -------------------------------------- 
    355          ! Euler (forward) time stepping, no time filter 
    356          IF( neuler == 0 .AND. kt == nit000 ) THEN 
     332         IF( neuler == 0 .AND. kt == nit000 ) THEN         ! Euler (forward) time stepping, no time filter 
    357333            DO ji = 1, jpi 
    358334               ! after free surface elevation 
     
    362338               sshn(ji,jj) = zssha 
    363339            END DO 
    364          ELSE 
    365             ! Leap-frog time stepping and time filter 
     340         ELSE                                              ! Leap-frog time stepping and time filter 
    366341            DO ji = 1, jpi 
    367342               ! after free surface elevation 
     
    384359         CALL prt_ctl( tab2d_1=sshn, clinfo1=' spg  - ssh: ', mask1=tmask) 
    385360      ENDIF 
    386  
    387  
     361      ! 
    388362   END SUBROUTINE dyn_spg_flt_jki 
    389363 
Note: See TracChangeset for help on using the changeset viewer.