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 13608 for NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/OCE/oce.F90 – NEMO

Ignore:
Timestamp:
2020-10-14T18:31:28+02:00 (4 years ago)
Author:
techene
Message:

#2385 reordering and remove unnecessary USE - sette test not passed yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/OCE/oce.F90

    r13237 r13608  
    1616   PRIVATE 
    1717 
    18    PUBLIC oce_alloc ! routine called by nemo_init in nemogcm.F90 
     18   PUBLIC oce_alloc       ! routine called by nemo_init in     nemogcm.F90 
     19   PUBLIC oce_SWE_alloc   ! routine called by nemo_init in SWE/nemogcm.F90 (Shallow Water Eq. case) 
    1920 
    2021   !! dynamics and tracer fields 
     
    6869   INTEGER, PUBLIC, DIMENSION(2) :: noce_array                             !: unused array but seems to be needed to prevent agrif from creating an empty module 
    6970 
     71   !! Shallow Water Eq. case (SWE) 
     72   LOGICAL, PUBLIC ::   lk_SWE = .FALSE.                                   !: shallow water flag =T in SWE configurations only 
     73    
    7074   !!---------------------------------------------------------------------- 
    7175   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    115119   END FUNCTION oce_alloc 
    116120 
     121 
     122   INTEGER FUNCTION oce_SWE_alloc() 
     123      !!---------------------------------------------------------------------- 
     124      !!                   ***  FUNCTION oce_SWE_alloc  *** 
     125      !!---------------------------------------------------------------------- 
     126      INTEGER :: ierr(2) 
     127      !!---------------------------------------------------------------------- 
     128      ! 
     129      lk_SWE  = .TRUE.                   ! =T SWE case  
     130      ! 
     131      ierr(:) = 0  
     132      ALLOCATE( uu(jpi,jpj,jpk,jpt) , vv  (jpi,jpj,jpk,jpt) ,     &           
     133         &      ww(jpi,jpj,jpk)     , hdiv(jpi,jpj,jpk)     , ssh(jpi,jpj,jpt) , STAT=ierr(1) ) 
     134         ! 
     135      ALLOCATE(   ts(jpi,jpj,jpk,jpts,jpt) , fraqsr_1lev(jpi,jpj) ,  & 
     136         &      uu_b(jpi,jpj,jpt) , vv_b(jpi,jpj,jpt)       , rn2(jpi,jpj,jpk) , STAT=ierr(2) ) 
     137         ! 
     138      oce_SWE_alloc = MAXVAL( ierr ) 
     139      IF( oce_SWE_alloc /= 0 )   CALL ctl_stop( 'STOP', 'oce_SWE_alloc: failed to allocate arrays' ) 
     140      ! 
     141   END FUNCTION oce_SWE_alloc 
     142 
    117143   !!====================================================================== 
    118144END MODULE oce 
Note: See TracChangeset for help on using the changeset viewer.