Changeset 3797
- Timestamp:
- 2013-02-11T12:26:15+01:00 (12 years ago)
- Location:
- branches/2012/dev_v3_4_STABLE_2012
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_v3_4_STABLE_2012/DOC/TexFiles/Chapters/Chap_SBC.tex
r3294 r3797 695 695 as inverse barometer sea surface height is usually removed from these date prior to their distribution. 696 696 697 When using time-splitting and BDY package for open boundaries conditions, the equivalent 698 inverse barometer sea surface height $\eta_{ib}$ can be added to BDY ssh data: 699 \np{ln\_apr\_obc} might be set to true. 700 697 701 % ================================================================ 698 702 % Tidal Potential -
branches/2012/dev_v3_4_STABLE_2012/DOC/TexFiles/Namelist/namsbc_apr
r2540 r3797 6 6 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 7 7 8 cn_dir = './' ! root directory for the location of the bulk files 9 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 8 cn_dir = './' ! root directory for the location of the bulk files 9 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 10 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 11 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 10 12 / -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/AMM12/EXP00/namelist
r3654 r3797 286 286 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 287 287 288 cn_dir = './' ! root directory for the location of the bulk files 289 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 288 cn_dir = './' ! root directory for the location of the bulk files 289 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 291 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 290 292 / 291 293 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/AMM12_PISCES/EXP00/namelist
r3654 r3797 286 286 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 287 287 288 cn_dir = './' ! root directory for the location of the bulk files 289 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 288 cn_dir = './' ! root directory for the location of the bulk files 289 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 291 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 290 292 / 291 293 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/GYRE/EXP00/namelist
r3654 r3797 287 287 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 288 288 289 cn_dir = './' ! root directory for the location of the bulk files 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 289 cn_dir = './' ! root directory for the location of the bulk files 290 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 291 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 292 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 291 293 / 292 294 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_LIM/EXP00/1_namelist
r3712 r3797 266 266 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 267 267 268 cn_dir = './' ! root directory for the location of the bulk files 269 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 268 cn_dir = './' ! root directory for the location of the bulk files 269 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 270 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 271 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 270 272 / 271 273 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_LIM/EXP00/namelist
r3604 r3797 287 287 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 288 288 289 cn_dir = './' ! root directory for the location of the bulk files 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 289 cn_dir = './' ! root directory for the location of the bulk files 290 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 291 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 292 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 291 293 / 292 294 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_LIM/cpp_ORCA2_LIM.fcm
r3294 r3797 1 bld::tool::fppkeys key_trabbl key_orca_r2 key_lim2 key_dynspg_flt key_diaeiv key_ldfslp key_traldf_c2d key_traldf_eiv key_dynldf_c3d key_zdftke key_zdfddm key_zdftmx key_iomput1 bld::tool::fppkeys key_trabbl key_orca_r2 key_lim2 key_dynspg_flt key_diaeiv key_ldfslp key_traldf_c2d key_traldf_eiv key_dynldf_c3d key_zdftke key_zdfddm key_zdftmx -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_OFF_PISCES/EXP00/namelist
r3654 r3797 286 286 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 287 287 288 cn_dir = './' ! root directory for the location of the bulk files 289 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 288 cn_dir = './' ! root directory for the location of the bulk files 289 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 291 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 290 292 / 291 293 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/CONFIG/ORCA2_TAM/EXP00/namelist
r3669 r3797 287 287 sn_apr = 'patm' , -1 ,'somslpre', .true. , .true. , 'yearly' , '' , '' 288 288 289 cn_dir = './' ! root directory for the location of the bulk files 290 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 289 cn_dir = './' ! root directory for the location of the bulk files 290 rn_pref = 101000._wp ! reference atmospheric pressure [N/m2]/ 291 ln_ref_apr = .false. ! ref. pressure: global mean Patm (T) or a constant (F) 292 ln_apr_obc = .false. ! inverse barometer added to OBC ssh data 291 293 / 292 294 !----------------------------------------------------------------------- -
branches/2012/dev_v3_4_STABLE_2012/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r3294 r3797 15 15 USE dynspg_oce ! surface pressure gradient variables 16 16 USE phycst ! physical constants 17 USE restart ! ocean restart 17 18 USE fldread ! read input fields 18 19 USE in_out_manager ! I/O manager … … 20 21 USE iom ! IOM library 21 22 USE lib_mpp ! MPP library 22 USE restart ! ocean restart23 23 24 24 IMPLICIT NONE … … 27 27 PUBLIC sbc_apr ! routine called in sbcmod 28 28 29 ! !!* namsbc_apr namelist (Atmospheric PRessure) * 30 LOGICAL, PUBLIC :: ln_apr_obc = .FALSE. !: inverse barometer added to OBC ssh data 31 LOGICAL, PUBLIC :: ln_ref_apr = .FALSE. !: ref. pressure: global mean Patm (F) or a constant (F) 29 ! !!* namsbc_apr namelist (Atmospheric PRessure) * 30 LOGICAL, PUBLIC :: ln_apr_obc = .FALSE. !: inverse barometer added to OBC ssh data 31 LOGICAL, PUBLIC :: ln_ref_apr = .FALSE. !: ref. pressure: global mean Patm (F) or a constant (F) 32 REAL(wp) :: rn_pref = 101000._wp ! reference atmospheric pressure [N/m2] 32 33 33 34 REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) :: ssh_ib ! Inverse barometer now sea surface height [m] … … 35 36 REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) :: apr ! atmospheric pressure at kt [N/m2] 36 37 37 REAL(wp) :: rpref = 101000._wp ! reference atmospheric pressure [N/m2]38 38 REAL(wp) :: tarea ! whole domain mean masked ocean surface 39 39 REAL(wp) :: r1_grau ! = 1.e0 / (grav * rau0) … … 66 66 !! 67 67 INTEGER :: ierror ! local integer 68 REAL(wp) :: zpref ! local scalar69 68 !! 70 69 CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files 71 70 TYPE(FLD_N) :: sn_apr ! informations about the fields to be read 72 71 !! 73 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr 72 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr, rn_pref, ln_apr_obc 74 73 !!---------------------------------------------------------------------- 75 74 ! … … 104 103 ! 105 104 IF( ln_ref_apr ) THEN !* Compute whole inner domain mean masked ocean surface 106 tarea = glob_sum( e1 t(:,:) *e2t(:,:) )105 tarea = glob_sum( e1e2t(:,:) ) 107 106 IF(lwp) WRITE(numout,*) ' Variable ref. Patm computed over a ocean surface of ', tarea*1e-6, 'km2' 108 107 ELSE 109 IF(lwp) WRITE(numout,*) ' Reference Patm used : ', r pref, ' N/m2'108 IF(lwp) WRITE(numout,*) ' Reference Patm used : ', rn_pref, ' N/m2' 110 109 ENDIF 111 110 ! … … 113 112 ! 114 113 ! !* control check 115 IF( ln_apr_obc ) & 116 CALL ctl_stop( 'sbc_apr: inverse barometer added to OBC ssh data not yet implemented ' ) 117 IF( ln_apr_obc .AND. .NOT. lk_obc ) & 118 CALL ctl_stop( 'sbc_apr: add inverse barometer to OBC requires to use key_obc' ) 114 IF ( ln_apr_obc ) THEN 115 IF(lwp) WRITE(numout,*) ' Inverse barometer added to OBC ssh data' 116 ENDIF 119 117 IF( ( ln_apr_obc ) .AND. .NOT. lk_dynspg_ts ) & 120 118 CALL ctl_stop( 'sbc_apr: use inverse barometer ssh at open boundary ONLY possible with time-splitting' ) … … 132 130 ! 133 131 ! !* update the reference atmospheric pressure (if necessary) 134 IF( ln_ref_apr ) r pref = glob_sum( sf_apr(1)%fnow(:,:,1) * e1t(:,:) *e2t(:,:) ) / tarea132 IF( ln_ref_apr ) rn_pref = glob_sum( sf_apr(1)%fnow(:,:,1) * e1e2t(:,:) ) / tarea 135 133 ! 136 134 ! !* Patm related forcing at kt 137 ssh_ib(:,:) = - ( sf_apr(1)%fnow(:,:,1) - r pref ) * r1_grau ! equivalent ssh (inverse barometer)135 ssh_ib(:,:) = - ( sf_apr(1)%fnow(:,:,1) - rn_pref ) * r1_grau ! equivalent ssh (inverse barometer) 138 136 apr (:,:) = sf_apr(1)%fnow(:,:,1) ! atmospheric pressure 139 137 !
Note: See TracChangeset
for help on using the changeset viewer.