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/UKMO/NEMO_4.0-TRUNK_r14960_HPG/tests/SEAMOUNT/MY_SRC – NEMO

source: NEMO/branches/UKMO/NEMO_4.0-TRUNK_r14960_HPG/tests/SEAMOUNT/MY_SRC/usrdef_sbc.F90 @ 15719

Last change on this file since 15719 was 15719, checked in by dbruciaferri, 2 years ago

updating tests from git repo

File size: 3.7 KB
Line 
1MODULE usrdef_sbc
2   !!======================================================================
3   !!                     ***  MODULE  usrdef_sbc  ***
4   !!
5   !!                   ===  SEAMOUNT configuration  ===
6   !!
7   !! User defined :   surface forcing of a user configuration
8   !!======================================================================
9   !! History :  4.0   ! 2016-03  (S. Flavoni, G. Madec)  user defined interface
10   !!----------------------------------------------------------------------
11
12   !!----------------------------------------------------------------------
13   !!   usrdef_sbc    : user defined surface bounday conditions in GYRE case
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
18   USE phycst         ! physical constants
19   !
20   USE in_out_manager ! I/O manager
21   USE lib_mpp        ! distribued memory computing library
22   USE lbclnk         ! ocean lateral boundary conditions (or mpp link)
23   USE lib_fortran    !
24
25   IMPLICIT NONE
26   PRIVATE
27
28   PUBLIC   usrdef_sbc_oce       ! routine called in sbcmod module
29   PUBLIC   usrdef_sbc_ice_tau   ! routine called by icestp.F90 for ice dynamics
30   PUBLIC   usrdef_sbc_ice_flx   ! routine called by icestp.F90 for ice thermo
31
32   !! * Substitutions
33#  include "do_loop_substitute.h90"
34   !!----------------------------------------------------------------------
35   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
36   !! $Id: usrdef_sbc.F90 13295 2020-07-10 18:24:21Z acc $
37   !! Software governed by the CeCILL license (see ./LICENSE)
38   !!----------------------------------------------------------------------
39CONTAINS
40
41   SUBROUTINE usrdef_sbc_oce( kt, Kbb )
42      !!---------------------------------------------------------------------
43      !!                    ***  ROUTINE usrdef_sbc  ***
44      !!             
45      !! ** Purpose :   Set all fields to zero
46      !!                i.e. the momentum, heat and freshwater fluxes.
47      !!
48      !! ** Method  :   Set all fields to zero
49      !!                CAUTION : never mask the surface stress field !
50      !!
51      !! ** Action  : - set the ocean surface boundary condition, i.e.   
52      !!                   utau, vtau, taum, wndm, qns, qsr, emp, sfx
53      !!
54      !! Reference : Hazeleger, W., and S. Drijfhout, JPO, 30, 677-695, 2000.
55      !!----------------------------------------------------------------------
56      INTEGER, INTENT(in) ::   kt   ! ocean time step
57      INTEGER, INTENT(in) ::   Kbb  ! ocean time index
58      !!
59      !!---------------------------------------------------------------------
60      IF( kt == nit000 ) THEN
61         !
62         IF(lwp) WRITE(numout,*)' usr_sbc : SEAMOUNT case: NO surface forcing'
63         IF(lwp) WRITE(numout,*)' ~~~~~~~~~~~   utau = vtau = taum = wndm = qns = qsr = emp = sfx = 0'
64         !
65         utau(:,:) = 0._wp
66         vtau(:,:) = 0._wp
67         taum(:,:) = 0._wp
68         wndm(:,:) = 0._wp
69         !
70         emp (:,:) = 0._wp
71         sfx (:,:) = 0._wp
72         qns (:,:) = 0._wp
73         qsr (:,:) = 0._wp
74         !         
75      ENDIF
76      !
77   END SUBROUTINE usrdef_sbc_oce
78
79   SUBROUTINE usrdef_sbc_ice_tau( kt )
80      INTEGER, INTENT(in) ::   kt   ! ocean time step
81   END SUBROUTINE usrdef_sbc_ice_tau
82
83
84   SUBROUTINE usrdef_sbc_ice_flx( kt, phs, phi )
85      INTEGER, INTENT(in) ::   kt   ! ocean time step
86      REAL(wp), DIMENSION(:,:,:), INTENT(in)  ::   phs    ! snow thickness
87      REAL(wp), DIMENSION(:,:,:), INTENT(in)  ::   phi    ! ice thickness
88   END SUBROUTINE usrdef_sbc_ice_flx
89
90   !!======================================================================
91END MODULE usrdef_sbc
Note: See TracBrowser for help on using the repository browser.