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 2715 for trunk/NEMOGCM/NEMO/OPA_SRC/SBC/sbcana.F90 – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/SBC/sbcana.F90

    r2548 r2715  
    2727   PUBLIC   sbc_gyre   ! routine called in sbcmod module 
    2828 
    29    !                               !!* Namelist namsbc_ana * 
    30    INTEGER  ::   nn_tau000 = 1      ! nb of time-step during which the surface stress 
    31    !                                ! increase from 0 to its nominal value  
    32    REAL(wp) ::   rn_utau0  = 0.e0   ! constant wind stress value in i-direction 
    33    REAL(wp) ::   rn_vtau0  = 0.e0   ! constant wind stress value in j-direction 
    34    REAL(wp) ::   rn_qns0   = 0.e0   ! non solar heat flux 
    35    REAL(wp) ::   rn_qsr0   = 0.e0   !     solar heat flux 
    36    REAL(wp) ::   rn_emp0   = 0.e0   ! net freshwater flux 
     29   !                                !!* Namelist namsbc_ana * 
     30   INTEGER  ::   nn_tau000 = 1       ! nb of time-step during which the surface stress 
     31   !                                 ! increase from 0 to its nominal value  
     32   REAL(wp) ::   rn_utau0  = 0._wp   ! constant wind stress value in i-direction 
     33   REAL(wp) ::   rn_vtau0  = 0._wp   ! constant wind stress value in j-direction 
     34   REAL(wp) ::   rn_qns0   = 0._wp   ! non solar heat flux 
     35   REAL(wp) ::   rn_qsr0   = 0._wp   !     solar heat flux 
     36   REAL(wp) ::   rn_emp0   = 0._wp   ! net freshwater flux 
    3737    
    3838   !! * Substitutions 
     
    4242   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    4343   !! $Id$ 
    44    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    45    !!---------------------------------------------------------------------- 
    46  
     44   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     45   !!---------------------------------------------------------------------- 
    4746CONTAINS 
    4847 
     
    6463      !!---------------------------------------------------------------------- 
    6564      INTEGER, INTENT(in) ::   kt       ! ocean time step 
    66       !! 
    67       REAL(wp)            ::   zfacto                ! local scalar 
    68       REAL(wp)            ::   zrhoa  = 1.22         ! Air density kg/m3 
    69       REAL(wp)            ::   zcdrag = 1.5e-3       ! drag coefficient 
    70       REAL(wp)            ::   ztx, zty, zmod, zcoef ! temporary variables 
     65      ! 
     66      REAL(wp) ::   zfacto                ! local scalar 
     67      REAL(wp) ::   zrhoa  = 1.22_wp      ! Air density kg/m3 
     68      REAL(wp) ::   zcdrag = 1.5e-3_wp    ! drag coefficient 
     69      REAL(wp) ::   ztx, zty, zmod, zcoef ! temporary variables 
    7170      !! 
    7271      NAMELIST/namsbc_ana/ nn_tau000, rn_utau0, rn_vtau0, rn_qns0, rn_qsr0, rn_emp0 
     
    7574      IF( kt == nit000 ) THEN 
    7675         ! 
    77          REWIND ( numnam )                   ! Read Namelist namsbc : surface fluxes 
    78          READ   ( numnam, namsbc_ana ) 
     76         REWIND( numnam )                    ! Read Namelist namsbc : surface fluxes 
     77         READ  ( numnam, namsbc_ana ) 
    7978         ! 
    8079         IF(lwp) WRITE(numout,*)' ' 
     
    8887         IF(lwp) WRITE(numout,*)'              net heat flux          rn_emp0   = ', rn_emp0  , ' Kg/m2/s' 
    8988         ! 
    90          nn_tau000 = MAX( nn_tau000, 1 )   ! must be >= 1 
     89         nn_tau000 = MAX( nn_tau000, 1 )     ! must be >= 1 
    9190         ! 
    9291      ENDIF 
    9392 
    94       qns   (:,:) = rn_qns0 
    95       qsr   (:,:) = rn_qsr0 
    96       emp   (:,:) = rn_emp0 
    97       emps  (:,:) = rn_emp0 
     93      qns (:,:) = rn_qns0 
     94      qsr (:,:) = rn_qsr0 
     95      emp (:,:) = rn_emp0 
     96      emps(:,:) = rn_emp0 
    9897    
    9998      ! Increase the surface stress to its nominal value during the first nn_tau000 time-steps 
     
    305304         WRITE(numout,*)'           ndastp     = ', ndastp 
    306305         WRITE(numout,*)'           adatrj     = ', adatrj 
    307  
    308306      ENDIF 
    309307      ! 
Note: See TracChangeset for help on using the changeset viewer.