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.
usrdef_sbc.F90 in NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/tests/OVERFLOW/MY_SRC – NEMO

source: NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/tests/OVERFLOW/MY_SRC/usrdef_sbc.F90 @ 12928

Last change on this file since 12928 was 12928, checked in by smueller, 4 years ago

Synchronizing with /NEMO/trunk@12925 (ticket #2170)

  • Property svn:keywords set to Id
File size: 3.7 KB
RevLine 
[6879]1MODULE usrdef_sbc
2   !!======================================================================
3   !!                       ***  MODULE  usrdef_sbc  ***
[6900]4   !!
5   !!                     ===  OVERFLOW configuration  ===
[6879]6   !!
[6923]7   !! User defined :   surface forcing of a user configuration
[6914]8   !!======================================================================
[6879]9   !! History :  4.0   ! 2016-03  (S. Flavoni, G. Madec)  user defined interface
10   !!----------------------------------------------------------------------
11
12   !!----------------------------------------------------------------------
[6895]13   !!   usr_def_sbc    : user defined surface bounday conditions in OVERFLOW case
[6879]14   !!----------------------------------------------------------------------
15   USE oce             ! ocean dynamics and tracers
16   USE dom_oce         ! ocean space and time domain
17   USE sbc_oce         ! Surface boundary condition: ocean fields
[9019]18   USE sbc_ice         ! Surface boundary condition: ice fields
[6879]19   USE phycst          ! physical constants
20   !
21   USE in_out_manager  ! I/O manager
22   USE lib_mpp         ! distribued memory computing library
23   USE lbclnk          ! ocean lateral boundary conditions (or mpp link)
[6895]24   USE lib_fortran     ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)
[6879]25
26   IMPLICIT NONE
27   PRIVATE
28
[9659]29   PUBLIC   usrdef_sbc_oce      ! routine called in sbcmod module
30   PUBLIC   usrdef_sbc_ice_tau  ! routine called by icestp.F90 for ice dynamics
31   PUBLIC   usrdef_sbc_ice_flx  ! routine called by icestp.F90 for ice thermo
[6879]32
33   !!----------------------------------------------------------------------
[10073]34   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
[6923]35   !! $Id$
[10073]36   !! Software governed by the CeCILL license (see ./LICENSE)
[6879]37   !!----------------------------------------------------------------------
38CONTAINS
39
[12928]40   SUBROUTINE usrdef_sbc_oce( kt, Kbb )
[6879]41      !!---------------------------------------------------------------------
42      !!                    ***  ROUTINE usr_def_sbc  ***
43      !!             
44      !! ** Purpose :   provide at each time-step the surface boundary
45      !!              condition, i.e. the momentum, heat and freshwater fluxes.
46      !!
[6895]47      !! ** Method  :   all 0 fields, for OVERFLOW case
[6879]48      !!                CAUTION : never mask the surface stress field !
49      !!
[6895]50      !! ** Action  : - set to ZERO all the ocean surface boundary condition, i.e.   
[6879]51      !!                   utau, vtau, taum, wndm, qns, qsr, emp, sfx
52      !!
53      !!----------------------------------------------------------------------
54      INTEGER, INTENT(in) ::   kt   ! ocean time step
[12928]55      INTEGER, INTENT(in) ::   Kbb  ! ocean time index
[6879]56      !!---------------------------------------------------------------------
57      !
58      IF( kt == nit000 ) THEN
59         !
[6895]60         IF(lwp) WRITE(numout,*)' usr_sbc : OVERFLOW case: NO surface forcing'
[6898]61         IF(lwp) WRITE(numout,*)' ~~~~~~~~~~~   utau = vtau = taum = wndm = qns = qsr = emp = sfx = 0'
[6879]62         !
[6900]63         utau(:,:) = 0._wp
[6898]64         vtau(:,:) = 0._wp
[6900]65         taum(:,:) = 0._wp
66         wndm(:,:) = 0._wp
[6879]67         !
[6900]68         emp (:,:) = 0._wp
69         sfx (:,:) = 0._wp
70         qns (:,:) = 0._wp
71         qsr (:,:) = 0._wp
[6879]72         !         
73      ENDIF
[7164]74      !
[7355]75   END SUBROUTINE usrdef_sbc_oce
[6879]76
[7355]77   SUBROUTINE usrdef_sbc_ice_tau( kt )
78      INTEGER, INTENT(in) ::   kt   ! ocean time step
79   END SUBROUTINE usrdef_sbc_ice_tau
80
[12928]81
82   SUBROUTINE usrdef_sbc_ice_flx( kt, phs, phi )
[7355]83      INTEGER, INTENT(in) ::   kt   ! ocean time step
[12928]84      REAL(wp), DIMENSION(:,:,:), INTENT(in)  ::   phs    ! snow thickness
85      REAL(wp), DIMENSION(:,:,:), INTENT(in)  ::   phi    ! ice thickness
[7355]86   END SUBROUTINE usrdef_sbc_ice_flx
87
[6879]88   !!======================================================================
89END MODULE usrdef_sbc
Note: See TracBrowser for help on using the repository browser.