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 14072 for NEMO/trunk/src/OCE/SBC/sbcssm.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/SBC/sbcssm.F90

    r13970 r14072  
    1010 
    1111   !!---------------------------------------------------------------------- 
    12    !!   sbc_ssm       : calculate sea surface mean currents, temperature,   
     12   !!   sbc_ssm       : calculate sea surface mean currents, temperature, 
    1313   !!                   and salinity over nn_fsbc time-step 
    1414   !!---------------------------------------------------------------------- 
     
    3131 
    3232   LOGICAL, SAVE ::   l_ssm_mean = .FALSE.   ! keep track of whether means have been read from restart file 
    33     
     33 
    3434#  include "domzgr_substitute.h90" 
    3535   !!---------------------------------------------------------------------- 
     
    4343      !!--------------------------------------------------------------------- 
    4444      !!                     ***  ROUTINE sbc_oce  *** 
    45       !!                      
     45      !! 
    4646      !! ** Purpose :   provide ocean surface variable to sea-surface boundary 
    47       !!                condition computation  
    48       !!                 
    49       !! ** Method  :   compute mean surface velocity (2 components at U and  
     47      !!                condition computation 
     48      !! 
     49      !! ** Method  :   compute mean surface velocity (2 components at U and 
    5050      !!      V-points) [m/s], temperature [Celsius] and salinity [psu] over 
    5151      !!      the periode (kt - nn_fsbc) to kt 
     
    199199         ! 
    200200      ELSE 
    201          !                
     201         ! 
    202202         IF(lwp) WRITE(numout,*) 
    203203         IF(lwp) WRITE(numout,*) 'sbc_ssm_init : sea surface mean fields' 
     
    221221            ! 
    222222            IF( zf_sbc /= REAL( nn_fsbc, wp ) ) THEN      ! nn_fsbc has changed between 2 runs 
    223                IF(lwp) WRITE(numout,*) '   restart with a change in the frequency of mean from ', zf_sbc, ' to ', nn_fsbc  
    224                zcoef = REAL( nn_fsbc - 1, wp ) / zf_sbc  
    225                ssu_m(:,:) = zcoef * ssu_m(:,:)  
     223               IF(lwp) WRITE(numout,*) '   restart with a change in the frequency of mean from ', zf_sbc, ' to ', nn_fsbc 
     224               zcoef = REAL( nn_fsbc - 1, wp ) / zf_sbc 
     225               ssu_m(:,:) = zcoef * ssu_m(:,:) 
    226226               ssv_m(:,:) = zcoef * ssv_m(:,:) 
    227227               sst_m(:,:) = zcoef * sst_m(:,:) 
     
    251251      ENDIF 
    252252      ! 
    253       IF( .NOT. ln_traqsr )   fraqsr_1lev(:,:) = 1._wp   ! default definition: qsr 100% in the fisrt level  
     253      IF( .NOT. ln_traqsr )   fraqsr_1lev(:,:) = 1._wp   ! default definition: qsr 100% in the fisrt level 
    254254      ! 
    255255   END SUBROUTINE sbc_ssm_init 
Note: See TracChangeset for help on using the changeset viewer.