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 branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/CONFIG/OVERFLOW/MY_SRC – NEMO

source: branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/CONFIG/OVERFLOW/MY_SRC/usrdef_sbc.F90 @ 6898

Last change on this file since 6898 was 6898, checked in by flavoni, 8 years ago

continue ROBUST3, little changes in usrdef_sbc

File size: 3.1 KB
Line 
1MODULE usrdef_sbc
2   !!======================================================================
3   !!                       ***  MODULE  usrdef_sbc  ***
4   !! Ocean forcing:  user defined momentum, heat and freshwater forcings
5   !!
6   !!                ===     Here  OVERFLOW configuration      ===
7   !!
8   !!=====================================================================
9   !! History :  4.0   ! 2016-03  (S. Flavoni, G. Madec)  user defined interface
10   !!----------------------------------------------------------------------
11
12   !!----------------------------------------------------------------------
13   !!   usr_def_sbc    : user defined surface bounday conditions in OVERFLOW 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     ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)
24
25   IMPLICIT NONE
26   PRIVATE
27
28   PUBLIC   usr_def_sbc    ! routine called in sbcmod module
29
30   !! * Substitutions
31#  include "vectopt_loop_substitute.h90"
32   !!----------------------------------------------------------------------
33   !! NEMO/OPA 4.0 , NEMO Consortium (2016)
34   !! $Id: $
35   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
36   !!----------------------------------------------------------------------
37CONTAINS
38
39   SUBROUTINE usr_def_sbc( kt )
40      !!---------------------------------------------------------------------
41      !!                    ***  ROUTINE usr_def_sbc  ***
42      !!             
43      !! ** Purpose :   provide at each time-step the surface boundary
44      !!              condition, i.e. the momentum, heat and freshwater fluxes.
45      !!
46      !! ** Method  :   all 0 fields, for OVERFLOW case
47      !!                CAUTION : never mask the surface stress field !
48      !!
49      !! ** Action  : - set to ZERO all the ocean surface boundary condition, i.e.   
50      !!                   utau, vtau, taum, wndm, qns, qsr, emp, sfx
51      !!
52      !!----------------------------------------------------------------------
53      INTEGER, INTENT(in) ::   kt   ! ocean time step
54      !!
55      !!---------------------------------------------------------------------
56      !
57      IF( kt == nit000 ) THEN
58         !
59         IF(lwp) WRITE(numout,*)' usr_sbc : OVERFLOW case: NO surface forcing'
60         IF(lwp) WRITE(numout,*)' ~~~~~~~~~~~   utau = vtau = taum = wndm = qns = qsr = emp = sfx = 0'
61         !
62         utau(:,:) = 0.0_wp
63         vtau(:,:) = 0._wp
64         taum(:,:) = 0.0_wp
65         wndm(:,:) = 0.0_wp
66         !
67         emp (:,:) = 0.0_wp
68         sfx (:,:) = 0.0_wp
69         qns (:,:) = 0.0_wp
70         qsr (:,:) = 0.0_wp
71         !         
72      ENDIF
73
74   END SUBROUTINE usr_def_sbc
75
76   !!======================================================================
77END MODULE usrdef_sbc
Note: See TracBrowser for help on using the repository browser.