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 5835 for branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/iscplhsb.F90 – NEMO

Ignore:
Timestamp:
2015-10-26T15:41:05+01:00 (9 years ago)
Author:
mathiot
Message:

ice sheet coupling branche: cosmetic changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/iscplhsb.F90

    r5823 r5835  
    8282      pvol_flx(:,:,:  ) = 0.0_wp 
    8383      pts_flx (:,:,:,:) = 0.0_wp 
     84      r1_tiscpl = 1._wp / (prdt_iscpl * rn_rdt)  
    8485 
    8586      ! mask tsn and tsb  
     
    8788      tsb(:,:,:,jp_sal)=tsb(:,:,:,jp_sal)*ptmask_b(:,:,:); tsn(:,:,:,jp_sal)=tsn(:,:,:,jp_sal)*tmask(:,:,:); 
    8889 
    89       ! diagnose non conservation of heat, salt and volume  
    90       r1_tiscpl = 1._wp / (prdt_iscpl * rn_rdt)  
    91  
     90      !============================================================================== 
     91      ! diagnose the heat, salt and volume input and compute the correction variable 
     92      !============================================================================== 
     93 
     94      !  
    9295      zssh0(:,:)        = sshn(:,:) * ssmask(:,:) - sshb(:,:) * psmask_b(:,:) 
    9396      IF ( lk_vvl ) zssh0 = 0.0_wp ! already include in the levels by definition 
    94  
     97       
    9598      DO jk = 1,jpk-1 
    9699         DO ji = 2,jpi-1 
     
    119122                  pts_flx (ji,jj,jk,jp_tem)=   pts_flx (ji,jj,jk,jp_tem) + zdtem(ji,jj) * r1_tiscpl 
    120123 
     124                  ! case where we close a cell: check if the neighbour cells are wet  
    121125                  IF ( tmask(ji,jj,jk) == 0._wp .AND. ptmask_b(ji,jj,jk) == 1._wp ) THEN 
    122                      ! case where we close a cell: check if the neighbour cells are wet  
    123126 
    124127                     jip1=ji+1 ; jim1=ji-1 ; jjp1=jj+1 ; jjm1=jj-1 ; 
Note: See TracChangeset for help on using the changeset viewer.