Changeset 3795 for branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/SBC
- Timestamp:
- 2013-02-11T10:29:31+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r3680 r3795 26 26 PUBLIC sbc_apr ! routine called in sbcmod 27 27 28 ! !!* namsbc_apr namelist (Atmospheric PRessure) * 29 LOGICAL, PUBLIC :: ln_apr_obc = .FALSE. !: inverse barometer added to OBC ssh data 30 LOGICAL, PUBLIC :: ln_ref_apr = .FALSE. !: ref. pressure: global mean Patm (F) or a constant (F) 28 ! !!* namsbc_apr namelist (Atmospheric PRessure) * 29 LOGICAL, PUBLIC :: ln_apr_obc = .FALSE. !: inverse barometer added to OBC ssh data 30 LOGICAL, PUBLIC :: ln_ref_apr = .FALSE. !: ref. pressure: global mean Patm (F) or a constant (F) 31 REAL(wp) :: rn_pref = 101000._wp ! reference atmospheric pressure [N/m2] 31 32 32 33 REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) :: ssh_ib ! Inverse barometer now sea surface height [m] … … 34 35 REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) :: apr ! atmospheric pressure at kt [N/m2] 35 36 36 REAL(wp) :: rpref = 101000._wp ! reference atmospheric pressure [N/m2]37 37 REAL(wp) :: tarea ! whole domain mean masked ocean surface 38 38 REAL(wp) :: r1_grau ! = 1.e0 / (grav * rau0) … … 69 69 TYPE(FLD_N) :: sn_apr ! informations about the fields to be read 70 70 !! 71 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr, r pref, ln_apr_obc71 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr, rn_pref, ln_apr_obc 72 72 !!---------------------------------------------------------------------- 73 73 ! … … 102 102 ! 103 103 IF( ln_ref_apr ) THEN !* Compute whole inner domain mean masked ocean surface 104 tarea = glob_sum( e1 t(:,:) *e2t(:,:) )104 tarea = glob_sum( e1e2t(:,:) ) 105 105 IF(lwp) WRITE(numout,*) ' Variable ref. Patm computed over a ocean surface of ', tarea*1e-6, 'km2' 106 106 ELSE 107 IF(lwp) WRITE(numout,*) ' Reference Patm used : ', r pref, ' N/m2'107 IF(lwp) WRITE(numout,*) ' Reference Patm used : ', rn_pref, ' N/m2' 108 108 ENDIF 109 109 ! … … 129 129 ! 130 130 ! !* update the reference atmospheric pressure (if necessary) 131 IF( ln_ref_apr ) r pref = glob_sum( sf_apr(1)%fnow(:,:,1) * e1t(:,:) *e2t(:,:) ) / tarea131 IF( ln_ref_apr ) rn_pref = glob_sum( sf_apr(1)%fnow(:,:,1) * e1e2t(:,:) ) / tarea 132 132 ! 133 133 ! !* Patm related forcing at kt 134 ssh_ib(:,:) = - ( sf_apr(1)%fnow(:,:,1) - r pref ) * r1_grau ! equivalent ssh (inverse barometer)134 ssh_ib(:,:) = - ( sf_apr(1)%fnow(:,:,1) - rn_pref ) * r1_grau ! equivalent ssh (inverse barometer) 135 135 apr (:,:) = sf_apr(1)%fnow(:,:,1) ! atmospheric pressure 136 136 !
Note: See TracChangeset
for help on using the changeset viewer.