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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/SBC/sbcice_cice.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/OCE/SBC/sbcice_cice.F90

    r9598 r10288  
    1313   USE dom_oce         ! ocean space and time domain 
    1414   USE domvvl 
    15    USE phycst, only : rcp, rau0, r1_rau0, rhosn, rhoic 
     15   USE phycst, only : rcp, rau0, r1_rau0, rhos, rhoi 
    1616   USE in_out_manager  ! I/O manager 
    1717   USE iom, ONLY : iom_put,iom_use              ! I/O manager library !!Joakim edit 
     
    8989 
    9090   !!---------------------------------------------------------------------- 
    91    !! NEMO/OCE 4.0 , NEMO Consortium (2018)  
     91   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    9292   !! $Id$ 
    93    !! Software governed by the CeCILL licence     (./LICENSE) 
     93   !! Software governed by the CeCILL license (see ./LICENSE) 
    9494   !!---------------------------------------------------------------------- 
    9595CONTAINS 
     
    222222      CALL cice2nemo(vsno(:,:,:),ztmp1,'T', 1. ) 
    223223      CALL cice2nemo(vice(:,:,:),ztmp2,'T', 1. ) 
    224       snwice_mass  (:,:) = ( rhosn * ztmp1(:,:) + rhoic * ztmp2(:,:)  ) 
     224      snwice_mass  (:,:) = ( rhos * ztmp1(:,:) + rhoi * ztmp2(:,:)  ) 
    225225      snwice_mass_b(:,:) = snwice_mass(:,:) 
    226226 
     
    328328         ELSE 
    329329! emp_ice is set in sbc_cpl_ice_flx as sublimation-snow 
    330             qla_ice(:,:,1)= - ( emp_ice(:,:)+sprecip(:,:) ) * Lsub 
     330            qla_ice(:,:,1)= - ( emp_ice(:,:)+sprecip(:,:) ) * rLsub 
    331331! End of temporary code 
    332332            DO jj=1,jpj 
     
    644644      CALL cice2nemo(vsno(:,:,:),ztmp1,'T', 1. ) 
    645645      CALL cice2nemo(vice(:,:,:),ztmp2,'T', 1. ) 
    646       snwice_mass  (:,:) = ( rhosn * ztmp1(:,:) + rhoic * ztmp2(:,:)  ) 
     646      snwice_mass  (:,:) = ( rhos * ztmp1(:,:) + rhoi * ztmp2(:,:)  ) 
    647647      snwice_mass_b(:,:) = snwice_mass(:,:) 
    648648      snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) / dt 
     
    801801      tprecip(:,:) = sf(jp_snow)%fnow(:,:,1)+sf(jp_rain)%fnow(:,:,1) 
    802802! May be better to do this conversion somewhere else 
    803       qla_ice(:,:,1) = -Lsub*sf(jp_sblm)%fnow(:,:,1) 
     803      qla_ice(:,:,1) = -rLsub*sf(jp_sblm)%fnow(:,:,1) 
    804804      topmelt(:,:,1) = sf(jp_top1)%fnow(:,:,1) 
    805805      topmelt(:,:,2) = sf(jp_top2)%fnow(:,:,1) 
     
    10511051 
    10521052   SUBROUTINE sbc_ice_cice ( kt, ksbc )     ! Dummy routine 
     1053      IMPLICIT NONE 
     1054      INTEGER, INTENT( in ) :: kt, ksbc 
    10531055      WRITE(*,*) 'sbc_ice_cice: You should not have seen this print! error?', kt 
    10541056   END SUBROUTINE sbc_ice_cice 
    10551057 
    10561058   SUBROUTINE cice_sbc_init (ksbc)    ! Dummy routine 
    1057       WRITE(*,*) 'cice_sbc_init: You should not have seen this print! error?' 
     1059      IMPLICIT NONE 
     1060      INTEGER, INTENT( in ) :: ksbc 
     1061      WRITE(*,*) 'cice_sbc_init: You should not have seen this print! error?', ksbc 
    10581062   END SUBROUTINE cice_sbc_init 
    10591063 
    10601064   SUBROUTINE cice_sbc_final     ! Dummy routine 
     1065      IMPLICIT NONE 
    10611066      WRITE(*,*) 'cice_sbc_final: You should not have seen this print! error?' 
    10621067   END SUBROUTINE cice_sbc_final 
Note: See TracChangeset for help on using the changeset viewer.