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 2141 – NEMO

Changeset 2141


Ignore:
Timestamp:
2010-09-30T15:22:26+02:00 (14 years ago)
Author:
cbricaud
Message:

add module to read atmospheric pressure and module to compute surface pressure gradient

Location:
branches/dev_1784_PATM/NEMO/OPA_SRC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_1784_PATM/NEMO/OPA_SRC/DOM/phycst.F90

    r1739 r2141  
    5252      rauw     = 1000._wp   ,  &  !: volumic mass of pure water (kg/m3) 
    5353      rcp      =    4.e+3_wp,  &  !: ocean specific heat 
    54       ro0cpr                      !: = 1. / ( rau0 * rcp ) 
     54      ro0cpr                ,  &  !: = 1. / ( rau0 * rcp ) 
     55      rpref    = 101000._wp       !: reference pressure for sea surface 
    5556 
    5657   REAL(wp), PUBLIC ::            &  !: 
  • branches/dev_1784_PATM/NEMO/OPA_SRC/SBC/sbc_oce.F90

    r1705 r2141  
    2424   LOGICAL , PUBLIC ::   ln_rnf      = .FALSE.   !: runoffs / runoff mouths 
    2525   LOGICAL , PUBLIC ::   ln_ssr      = .FALSE.   !: Sea Surface restoring on SST and/or SSS       
     26   LOGICAL , PUBLIC ::   ln_patm     = .FALSE.   !: Read atmospheric pressure 
    2627   INTEGER , PUBLIC ::   nn_ice      = 0         !: flag on ice in the surface boundary condition (=0/1/2/3) 
    2728   INTEGER , PUBLIC ::   nn_fwb      = 0         !: FreshWater Budget:  
  • branches/dev_1784_PATM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r1725 r2141  
    66   !! History :  3.0   !  07-2006  (G. Madec)  Original code 
    77   !!             -    !  08-2008  (S. Masson, E. .... ) coupled interface 
     8   !!            3.2   !  2010-08  (J. Chanut, C. Bricaud) add atmospheric pressure forcing  
    89   !!---------------------------------------------------------------------- 
    910 
     
    2829   USE sbccpl          ! surface boundary condition: coupled florulation 
    2930   USE cpl_oasis3, ONLY:lk_cpl      ! are we in coupled mode? 
     31   USE sbcpatm         ! surface boundary condition: atmospheric pressure forcing 
    3032   USE sbcssr          ! surface boundary condition: sea surface restoring 
    3133   USE sbcrnf          ! surface boundary condition: runoffs 
     
    7072      !! 
    7173      NAMELIST/namsbc/ nn_fsbc, ln_ana, ln_flx, ln_blk_clio, ln_blk_core, ln_cpl,   & 
    72          &             nn_ice , ln_dm2dc, ln_rnf, ln_ssr, nn_fwb, nn_ico_cpl 
     74         &             nn_ice , ln_dm2dc, ln_rnf, ln_ssr, ln_patm, nn_fwb, nn_ico_cpl 
    7375      !!---------------------------------------------------------------------- 
    7476 
     
    114116         WRITE(numout,*) '              runoff / runoff mouths                     ln_rnf      = ', ln_rnf 
    115117         WRITE(numout,*) '              Sea Surface Restoring on SST and/or SSS    ln_ssr      = ', ln_ssr 
     118         WRITE(numout,*) '              Atmpospheric pressure forcing              ln_patm     = ', ln_patm 
    116119         WRITE(numout,*) '              FreshWater Budget control  (=0/1/2)        nn_fwb      = ', nn_fwb 
    117120         WRITE(numout,*) '              closed sea (=0/1) (set in namdom)          nn_closea   = ', nn_closea 
     
    195198      !                                          ! temperature and salinity (at T-point) over nf_sbc time-step 
    196199      !                                          ! (i.e. sst_m, sss_m, ssu_m, ssv_m) 
     200 
     201      ! read atmospharic pressure 
     202      ! ------------------------- 
     203      IF ( ln_patm ) CALL sbc_patm( kt ) 
    197204 
    198205      ! sbc formulation 
  • branches/dev_1784_PATM/NEMO/OPA_SRC/step.F90

    r1756 r2141  
    2828   USE oce             ! ocean dynamics and tracers variables 
    2929   USE dom_oce         ! ocean space and time domain variables  
     30   USE sbc_oce         ! surface boundary condition 
    3031   USE zdf_oce         ! ocean vertical physics variables 
    3132   USE ldftra_oce      ! ocean tracer   - trends 
     
    4243   USE sbcrnf          ! surface boundary condition: runoff variables 
    4344   USE sbccpl          ! surface boundary condition: coupled formulation (call send at end of step) 
     45   USE sbcpatm         ! Atmospheric pressure forcing 
    4446   USE cpl_oasis3, ONLY : lk_cpl 
    4547 
     
    7072   USE dynzdf          ! vertical diffusion               (dyn_zdf routine) 
    7173   USE dynspg_oce      ! surface pressure gradient        (dyn_spg routine) 
     74   USE dynapg          ! atmospheric pressure forcing     (dyn_apg routine) 
    7275   USE dynspg          ! surface pressure gradient        (dyn_spg routine) 
    7376   USE dynnxt          ! time-stepping                    (dyn_nxt routine) 
     
    168171!      IF ( Agrif_Root() .and. lwp) Write(*,*) '---' 
    169172!      IF (lwp) Write(*,*) 'Grid Number',Agrif_Fixed(),' time step ',kstp 
    170 #endif    
     173#endif 
    171174      indic = 1                                       ! reset to no error condition 
    172175 
     
    310313                               CALL dyn_zdf( kstp )         ! vertical diffusion 
    311314                               indic=0 
     315        IF( ln_patm_apg  )     CALL dyn_apg( kstp )         ! Atmospheric pressure forcing 
    312316                               CALL dyn_spg( kstp, indic )  ! surface pressure gradient 
    313317                               CALL dyn_nxt( kstp )         ! lateral velocity at next time step 
Note: See TracChangeset for help on using the changeset viewer.