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/2020/r12377_ticket2386/tests/ISOMIP/MY_SRC – NEMO

source: NEMO/branches/2020/r12377_ticket2386/tests/ISOMIP/MY_SRC/usrdef_sbc.F90 @ 12511

Last change on this file since 12511 was 12377, checked in by acc, 4 years ago

The big one. Merging all 2019 developments from the option 1 branch back onto the trunk.

This changeset reproduces 2019/dev_r11943_MERGE_2019 on the trunk using a 2-URL merge
onto a working copy of the trunk. I.e.:

svn merge --ignore-ancestry \

svn+ssh://acc@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/trunk \
svn+ssh://acc@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/NEMO/branches/2019/dev_r11943_MERGE_2019 ./

The --ignore-ancestry flag avoids problems that may otherwise arise from the fact that
the merge history been trunk and branch may have been applied in a different order but
care has been taken before this step to ensure that all applicable fixes and updates
are present in the merge branch.

The trunk state just before this step has been branched to releases/release-4.0-HEAD
and that branch has been immediately tagged as releases/release-4.0.2. Any fixes
or additions in response to tickets on 4.0, 4.0.1 or 4.0.2 should be done on
releases/release-4.0-HEAD. From now on future 'point' releases (e.g. 4.0.2) will
remain unchanged with periodic releases as needs demand. Note release-4.0-HEAD is a
transitional naming convention. Future full releases, say 4.2, will have a release-4.2
branch which fulfills this role and the first point release (e.g. 4.2.0) will be made
immediately following the release branch creation.

2020 developments can be started from any trunk revision later than this one.

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