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 9169 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/iceforcing.F90 – NEMO

Ignore:
Timestamp:
2017-12-26T17:32:56+01:00 (6 years ago)
Author:
gm
Message:

dev_merge_2017: all SRC: finalize the removal of useless warning when reading namelist_cfg + remove all nn_closea + nn_msh replaced by a logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/LIM_SRC_3/iceforcing.F90

    r9124 r9169  
    5252      !!              utau_ice, vtau_ice : surface ice stress (U- & V-points) [N/m2] 
    5353      !!------------------------------------------------------------------- 
    54       INTEGER, INTENT(in) ::   kt      ! ocean time step 
    55       INTEGER, INTENT(in) ::   ksbc    ! type of sbc flux ( 1 = user defined formulation,  
    56                                        !                    3 = bulk formulation, 
    57                                        !                    4 = Pure Coupled formulation) 
    58       REAL(wp), DIMENSION(jpi,jpj), INTENT(out) ::   utau_ice, vtau_ice  
     54      INTEGER                     , INTENT(in   ) ::   kt                   ! ocean time step 
     55      INTEGER                     , INTENT(in   ) ::   ksbc                 ! type of sbc flux 
     56      REAL(wp), DIMENSION(jpi,jpj), INTENT(  out) ::   utau_ice, vtau_ice   ! air-ice stress   [N/m2] 
    5957      !! 
    6058      INTEGER  ::   ji, jj                 ! dummy loop index 
    6159      REAL(wp), DIMENSION(jpi,jpj) ::   zutau_ice, zvtau_ice  
    6260      !!------------------------------------------------------------------- 
    63  
     61      ! 
    6462      IF( ln_timing )   CALL timing_start('ice_forcing') 
    65  
     63      ! 
    6664      IF( kt == nit000 .AND. lwp ) THEN 
    6765         WRITE(numout,*) 
     
    6967         WRITE(numout,*)'~~~~~~~~~~~~~~~' 
    7068      ENDIF 
    71  
     69      ! 
    7270      SELECT CASE( ksbc ) 
    7371         CASE( jp_usr     )   ;    CALL usrdef_sbc_ice_tau( kt )                 ! user defined formulation 
     
    7573         CASE( jp_purecpl )   ;    CALL sbc_cpl_ice_tau( utau_ice , vtau_ice )   ! Coupled      formulation 
    7674      END SELECT 
    77  
     75      ! 
    7876      IF( ln_mixcpl) THEN                                                        ! Case of a mixed Bulk/Coupled formulation 
    7977                                   CALL sbc_cpl_ice_tau( zutau_ice , zvtau_ice ) 
     
    8684         CALL lbc_lnk_multi( utau_ice, 'U', -1., vtau_ice, 'V', -1. ) 
    8785      ENDIF 
    88  
     86      ! 
    8987      IF( ln_timing )   CALL timing_stop('ice_forcing') 
    9088      ! 
     
    255253   END SUBROUTINE ice_flx_dist 
    256254 
     255 
    257256   SUBROUTINE ice_forcing_init 
    258257      !!------------------------------------------------------------------- 
    259258      !!                  ***  ROUTINE ice_forcing_init  *** 
    260259      !! 
    261       !! ** Purpose : Physical constants and parameters linked to the ice 
    262       !!      dynamics 
    263       !! 
    264       !! ** Method  :  Read the namforcing namelist and check the ice-dynamic 
    265       !!       parameter values called at the first timestep (nit000) 
     260      !! ** Purpose :   Physical constants and parameters linked to the ice dynamics 
     261      !!       
     262      !! ** Method  :   Read the namforcing namelist and check the ice-dynamic 
     263      !!              parameter values called at the first timestep (nit000) 
    266264      !! 
    267265      !! ** input   :   Namelist namforcing 
    268266      !!------------------------------------------------------------------- 
    269       INTEGER ::   ios, ioptio   ! Local integer output status for namelist read 
     267      INTEGER ::   ios, ioptio   ! Local integer 
    270268      !! 
    271269      NAMELIST/namforcing/ rn_cio, rn_blow_s, nn_flxdist, nice_jules 
     
    274272      REWIND( numnam_ice_ref )         ! Namelist namforcing in reference namelist : Ice dynamics 
    275273      READ  ( numnam_ice_ref, namforcing, IOSTAT = ios, ERR = 901) 
    276 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namforcing in reference namelist', lwp ) 
    277       ! 
     274901   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namforcing in reference namelist', lwp ) 
    278275      REWIND( numnam_ice_cfg )         ! Namelist namforcing in configuration namelist : Ice dynamics 
    279276      READ  ( numnam_ice_cfg, namforcing, IOSTAT = ios, ERR = 902 ) 
    280 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namforcing in configuration namelist', lwp ) 
    281       IF(lwm) WRITE ( numoni, namforcing ) 
     277902   IF( ios >  0 )  CALL ctl_nam ( ios , 'namforcing in configuration namelist', lwp ) 
     278      IF(lwm) WRITE( numoni, namforcing ) 
    282279      ! 
    283280      IF(lwp) THEN                     ! control print 
    284281         WRITE(numout,*) 
    285282         WRITE(numout,*) 'ice_forcing_init: ice parameters for ice dynamics ' 
    286          WRITE(numout,*) '~~~~~~~~~~~~~~~' 
     283         WRITE(numout,*) '~~~~~~~~~~~~~~~~' 
    287284         WRITE(numout,*) '   Namelist namforcing:' 
    288285         WRITE(numout,*) '      drag coefficient for oceanic stress              rn_cio     = ', rn_cio 
Note: See TracChangeset for help on using the changeset viewer.