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/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH_1/MY_SRC – NEMO

source: NEMO/branches/2018/dev_r9759_HPC09_ESIWACE/tests/BENCH_1/MY_SRC/usrdef_sbc.F90 @ 10136

Last change on this file since 10136 was 10136, checked in by dguibert, 6 years ago

bull: async/datatype

Experimental changes to enable/study/bench various mpi "optimisations":

  • BULL_ASYNC
  • BULL_DATATYPE_VECTOR/SUBARRAY

this has been applied to the nonosc subroutine (only for now).

File size: 3.0 KB
Line 
1MODULE usrdef_sbc
2   !!======================================================================
3   !!                       ***  MODULE  usrdef_sbc  ***
4   !!
5   !!                      ===  BENCH configuration  ===
6   !!
7   !! User defined :   surface forcing of a user configuration
8   !!======================================================================
9   !! History :  4.0   !
10   !!----------------------------------------------------------------------
11
12   !!----------------------------------------------------------------------
13   !!   usr_def_sbc    : user defined surface bounday conditions in BENCH case
14   !!----------------------------------------------------------------------
15   USE sbc_oce         ! Surface boundary condition: ocean fields
16   USE in_out_manager  ! I/O manager
17
18   IMPLICIT NONE
19   PRIVATE
20
21   PUBLIC   usrdef_sbc_oce      ! routine called in sbcmod module
22   PUBLIC   usrdef_sbc_ice_tau  ! routine called by sbcice_lim.F90 for ice dynamics
23   PUBLIC   usrdef_sbc_ice_flx  ! routine called by sbcice_lim.F90 for ice thermo
24
25   !!----------------------------------------------------------------------
26   !! NEMO/OPA 4.0 , NEMO Consortium (2016)
27   !! $Id$
28   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
29   !!----------------------------------------------------------------------
30CONTAINS
31
32   SUBROUTINE usrdef_sbc_oce( kt )
33      !!---------------------------------------------------------------------
34      !!                    ***  ROUTINE usr_def_sbc  ***
35      !!             
36      !! ** Purpose :   provide at each time-step the surface boundary
37      !!              condition, i.e. the momentum, heat and freshwater fluxes.
38      !!
39      !! ** Method  :   all 0 fields, for BENCH case
40      !!                CAUTION : never mask the surface stress field !
41      !!
42      !! ** Action  : - set to ZERO all the ocean surface boundary condition, i.e.   
43      !!                   utau, vtau, taum, wndm, qns, qsr, emp, sfx
44      !!
45      !!----------------------------------------------------------------------
46      INTEGER, INTENT(in) ::   kt   ! ocean time step
47      !!---------------------------------------------------------------------
48      !     
49      IF( kt == nit000 ) THEN
50         !
51         IF(lwp) WRITE(numout,*)' usr_sbc : BENCH case: surface forcing'
52         IF(lwp) WRITE(numout,*)' ~~~~~~~~~~~   vtau = taum = wndm = qns = qsr = emp = sfx = 0'
53         !
54         utau(:,:) = 0._wp
55         vtau(:,:) = 0._wp
56         taum(:,:) = 0._wp
57         wndm(:,:) = 0._wp
58         !
59         emp (:,:) = 0._wp
60         sfx (:,:) = 0._wp
61         qns (:,:) = 0._wp
62         qsr (:,:) = 0._wp
63         !         
64      ENDIF
65     
66      !
67   END SUBROUTINE usrdef_sbc_oce
68
69   SUBROUTINE usrdef_sbc_ice_tau( kt )
70      INTEGER, INTENT(in) ::   kt   ! ocean time step
71   END SUBROUTINE usrdef_sbc_ice_tau
72
73   SUBROUTINE usrdef_sbc_ice_flx( kt )
74      INTEGER, INTENT(in) ::   kt   ! ocean time step
75   END SUBROUTINE usrdef_sbc_ice_flx
76
77   !!======================================================================
78END MODULE usrdef_sbc
Note: See TracBrowser for help on using the repository browser.