Changeset 10479
- Timestamp:
- 2019-01-09T12:22:16+01:00 (6 years ago)
- Location:
- branches/UKMO/AMM15_v3_6_STABLE_package_collate_coupling/NEMOGCM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/AMM15_v3_6_STABLE_package_collate_coupling/NEMOGCM/CONFIG/SHARED/namelist_ref
r10478 r10479 399 399 ln_usecplmask = .false. ! use a coupling mask file to merge data received from several models 400 400 ! -> file cplmask.nc with the float variable called cplmask (jpi,jpj,nn_cplmodel) 401 ln_usernfmask = .false. ! use a runoff mask file to merge data received from several models 402 ! -> file rnfmask.nc with the float variable called rnfmask (jpi,jpj,nn_cplmodel) 401 403 / 402 404 !----------------------------------------------------------------------- -
branches/UKMO/AMM15_v3_6_STABLE_package_collate_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbc_oce.F90
r10478 r10479 48 48 LOGICAL , PUBLIC :: ln_ssr !: Sea Surface restoring on SST and/or SSS 49 49 LOGICAL , PUBLIC :: ln_apr_dyn !: Atmospheric pressure forcing used on dynamics (ocean & ice) 50 LOGICAL, PUBLIC :: ln_usernfmask = .false. ! use a runoff mask file to merge data received from several models 51 ! -> file rnfmask.nc with the float variable called rnfmask (jpi,jpj,nn_cplmodel) 50 52 INTEGER , PUBLIC :: nn_ice !: flag for ice in the surface boundary condition (=0/1/2/3) 51 53 INTEGER , PUBLIC :: nn_isf !: flag for isf in the surface boundary condition (=0/1/2/3/4) … … 152 154 #endif 153 155 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xcplmask !: coupling mask for ln_mixcpl (warning: allocated in sbccpl) 156 REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xrnfmask !: coupling mask for ln_usernfmask (warning: allocated in sbcrnf) 154 157 155 158 !!---------------------------------------------------------------------- -
branches/UKMO/AMM15_v3_6_STABLE_package_collate_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r10478 r10479 252 252 & sn_rcv_wdrag, sn_rcv_qns , sn_rcv_emp , sn_rcv_rnf , sn_rcv_cal , & 253 253 & sn_rcv_iceflx, sn_rcv_co2 , sn_rcv_mslp , sn_rcv_tauw , & 254 & nn_cplmodel, ln_usecplmask 254 & nn_cplmodel, ln_usecplmask, ln_usernfmask 255 255 !!--------------------------------------------------------------------- 256 256 ! … … 320 320 WRITE(numout,*)' nn_cplmodel = ', nn_cplmodel 321 321 WRITE(numout,*)' ln_usecplmask = ', ln_usecplmask 322 WRITE(numout,*)' ln_usernfmask = ', ln_usernfmask 322 323 ENDIF 323 324 … … 458 459 IF( TRIM( sn_rcv_rnf%cldes ) == 'coupled' ) THEN 459 460 srcv(jpr_rnf)%laction = .TRUE. 460 l_rnfcpl = . TRUE.! -> no need to read runoffs in sbcrnf461 l_rnfcpl = .NOT. ln_usernfmask ! -> no need to read runoffs in sbcrnf 461 462 ln_rnf = nn_components /= jp_iam_sas ! -> force to go through sbcrnf if not sas 462 463 IF(lwp) WRITE(numout,*) -
branches/UKMO/AMM15_v3_6_STABLE_package_collate_coupling/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r8058 r10479 82 82 ALLOCATE( rnfmsk(jpi,jpj) , rnfmsk_z(jpk) , & 83 83 & h_rnf (jpi,jpj) , nk_rnf (jpi,jpj) , & 84 & rnf_tsc_b(jpi,jpj,jpts) , rnf_tsc (jpi,jpj,jpts) , STAT=sbc_rnf_alloc ) 84 & rnf_tsc_b(jpi,jpj,jpts) , rnf_tsc (jpi,jpj,jpts) , & 85 & xrnfmask(jpi,jpj,1) , STAT=sbc_rnf_alloc ) 85 86 ! 86 87 IF( lk_mpp ) CALL mpp_sum ( sbc_rnf_alloc ) … … 128 129 IF( MOD( kt - 1, nn_fsbc ) == 0 ) THEN 129 130 ! 130 IF( .NOT. l_rnfcpl ) rnf(:,:) = rn_rfact * ( sf_rnf(1)%fnow(:,:,1) ) ! updated runoff value at time step kt 131 IF( .NOT. l_rnfcpl ) & 132 rnf(:,:) = rnf(:,:) * (1. - xrnfmask(:,:,1)) + rn_rfact * sf_rnf(1)%fnow(:,:,1) * xrnfmask(:,:,1) ! updated runoff value at time step kt 131 133 ! 132 134 ! ! set temperature & salinity content of runoffs … … 442 444 ENDIF 443 445 ! 446 xrnfmask(:,:,:) = 1. ! default value for points using river forcing 447 IF (ln_usernfmask) THEN 448 IF(lwp) WRITE(numout,*) 449 IF(lwp) WRITE(numout,*) ' runoff mask read in a file' 450 CALL iom_open( 'rnfmask', inum ) 451 CALL iom_get( inum, jpdom_data, 'rnfmask', xrnfmask(:,:,1), 1) 452 CALL iom_close( inum ) 453 ENDIF 454 ! 444 455 rnf(:,:) = 0._wp ! runoff initialisation 445 456 rnf_tsc(:,:,:) = 0._wp ! runoffs temperature & salinty contents initilisation
Note: See TracChangeset
for help on using the changeset viewer.