- Timestamp:
- 2010-05-06T10:40:07+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/OPA_SRC/SBC/sbcrnf.F90
r1730 r1859 8 8 !! 3.0 ! 2006-07 (G. Madec) Surface module 9 9 !! 3.2 ! 2009-04 (B. Lemaire) Introduce iom_put 10 !! - ! 2010-05 (Y. Aksenov G. Madec) salt flux + heat associated with emp 10 11 !!---------------------------------------------------------------------- 11 12 … … 41 42 REAL(wp), PUBLIC, DIMENSION(jpk) :: rnfmsk_z !: river mouth mask (vert.) 42 43 44 REAL(wp) :: rfact_rcp ! = rn_rfact * rcp 43 45 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_rnf ! structure of input SST (file information, fields read) 44 46 45 47 !!---------------------------------------------------------------------- 46 !! NEMO/OPA 3. 2 , LOCEAN-IPSL (2009)48 !! NEMO/OPA 3.3 , LOCEAN-IPSL (2010) 47 49 !! $Id$ 48 50 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) … … 64 66 !!---------------------------------------------------------------------- 65 67 INTEGER, INTENT(in) :: kt ! ocean time step 66 ! !68 ! 67 69 INTEGER :: ji, jj ! dummy loop indices 68 70 INTEGER :: ierror ! temporary integer … … 78 80 ALLOCATE( sf_rnf(1)%fdta(jpi,jpj,2) ) 79 81 ENDIF 80 CALL sbc_rnf_init(sf_rnf) 82 CALL sbc_rnf_init( sf_rnf ) 83 ! 84 rfact_rcp = rn_rfact * rcp 81 85 ENDIF 82 86 … … 85 89 ! !-------------------! 86 90 ! 87 CALL fld_read( kt, nn_fsbc, sf_rnf ) ! Read Runoffs data and provides it 88 ! ! at the current time-step 89 90 ! Runoff reduction only associated to the ORCA2_LIM configuration 91 ! when reading the NetCDF file runoff_1m_nomask.nc 92 IF( cp_cfg == 'orca' .AND. jp_cfg == 2 ) THEN 93 DO jj = 1, jpj 91 CALL fld_read( kt, nn_fsbc, sf_rnf ) ! Read Runoffs data at the current time-step 92 ! 93 !!gm CAUTION this is ugly ===>>> to be removed! 94 IF( cp_cfg == 'orca' .AND. jp_cfg == 2 ) THEN ! Runoff reduction only associated to the ORCA2_LIM configuration 95 DO jj = 1, jpj ! when reading the NetCDF file runoff_1m_nomask.nc 94 96 DO ji = 1, jpi 95 97 IF( gphit(ji,jj) > 40 .AND. gphit(ji,jj) < 65 ) sf_rnf(1)%fnow(ji,jj) = 0.85 * sf_rnf(1)%fnow(ji,jj) … … 97 99 END DO 98 100 ENDIF 99 100 ! C a u t i o n : runoff is negative and in kg/m2/s 101 102 IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN 103 emp (:,:) = emp (:,:) - rn_rfact * ABS( sf_rnf(1)%fnow(:,:) ) 104 emps(:,:) = emps(:,:) - rn_rfact * ABS( sf_rnf(1)%fnow(:,:) ) 101 ! 102 IF( MOD( kt-1, nn_fsbc ) == 0 ) THEN ! C a u t i o n : runoff is negative and in kg/m2/s 103 emp(:,:) = emp(:,:) - rn_rfact * ABS( sf_rnf(1)%fnow(:,:) ) ! mass flux 104 qns(:,:) = qns(:,:) + rfact_rcp * ABS( sf_rnf(1)%fnow(:,:) ) * sst_m(:,:) ! its associated heat content (at SST) 105 ! 105 106 CALL iom_put( "runoffs", sf_rnf(1)%fnow ) ! runoffs 106 107 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.