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 5034 for branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90 – NEMO

Ignore:
Timestamp:
2015-01-15T14:48:42+01:00 (9 years ago)
Author:
andrewryan
Message:

merge with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.12_STAND_ALONE_OBSOPER/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90

    r4624 r5034  
    1919   USE phycst          ! physical constants 
    2020   USE sbc_oce         ! surface boundary condition variables 
     21   USE sbcisf          ! PM we could remove it I think 
    2122   USE closea          ! closed seas 
    2223   USE fldread         ! read input field at current time step 
     
    2425   USE iom             ! I/O module 
    2526   USE lib_mpp         ! MPP library 
     27   USE eosbn2 
     28   USE wrk_nemo        ! Memory allocation 
    2629 
    2730   IMPLICIT NONE 
     
    98101      INTEGER  ::   z_err = 0 ! dummy integer for error handling 
    99102      !!---------------------------------------------------------------------- 
     103      REAL(wp), DIMENSION(:,:), POINTER       ::   ztfrz   ! freezing point used for temperature correction 
     104      ! 
     105      CALL wrk_alloc( jpi,jpj, ztfrz) 
     106 
    100107      ! 
    101108      IF( kt == nit000 )   CALL sbc_rnf_init                           ! Read namelist and allocate structures 
     
    134141               WHERE( sf_t_rnf(1)%fnow(:,:,1) == -999._wp )             ! if missing data value use SST as runoffs temperature 
    135142                   rnf_tsc(:,:,jp_tem) = sst_m(:,:) * rnf(:,:) * r1_rau0 
     143               END WHERE 
     144               WHERE( sf_t_rnf(1)%fnow(:,:,1) == -222._wp )             ! where fwf comes from melting of ice shelves or iceberg 
     145                   ztfrz(:,:) = -1.9 !tfreez( sss_m(:,:) ) !PM to be discuss (trouble if sensitivity study) 
     146                   rnf_tsc(:,:,jp_tem) = ztfrz(:,:) * rnf(:,:) * r1_rau0 - rnf(:,:) * lfusisf * r1_rau0_rcp 
    136147               END WHERE 
    137148            ELSE                                                        ! use SST as runoffs temperature 
     
    175186         CALL iom_rstput( kt, nitrst, numrow, 'rnf_sc_b', rnf_tsc(:,:,jp_sal) ) 
    176187      ENDIF 
     188      CALL wrk_dealloc( jpi,jpj, ztfrz) 
    177189      ! 
    178190   END SUBROUTINE sbc_rnf 
Note: See TracChangeset for help on using the changeset viewer.