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.
diu_layers.F90 in NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/OCE/DIU – NEMO

source: NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/OCE/DIU/diu_layers.F90 @ 10989

Last change on this file since 10989 was 10989, checked in by acc, 5 years ago

2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps : Convert NST routines in preparation for getting AGRIF back up and running. AGRIF conv stage now works but requires some renaming of recently changes DIU modules (included in this commit). AGRIF compile and link stage not yet working (agrif routines need to be passed the time-level indices) but non-AGRIF SETTE tests are all OK

File size: 2.0 KB
Line 
1MODULE diu_layers
2   !!======================================================================
3   !!                       ***  MODULE diu_layers **
4   !! Apply coolskin and warm layer calculations
5   !!======================================================================
6   !! History :  3.7  ! 2015-11  (J. While)  Original code
7
8   USE diu_bulk     ! diurnal SST bulk routines  (diurnal_sst_takaya routine)
9   USE diu_coolskin ! diurnal cool skin correction (diurnal_sst_coolskin routine)   
10   USE oce
11   USE iom
12   USE sbc_oce
13   USE sbcmod       ! surface boundary condition       (sbc     routine)
14   
15   IMPLICIT NONE
16   PRIVATE
17
18   PUBLIC diurnal_sst_bulk_init      ! called by nemogcm.F90
19   PUBLIC diurnal_sst_coolskin_init  ! called by nemogcm.F90
20   PUBLIC diurnal_layers             ! called by step.F90 or step_diu.F90
21
22   !!----------------------------------------------------------------------
23   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
24   !! $Id: step_diu.F90 10922 2019-05-02 15:10:39Z acc $
25   !! Software governed by the CeCILL license (see ./LICENSE)
26   !!----------------------------------------------------------------------
27
28   CONTAINS
29
30   SUBROUTINE diurnal_layers( kstp ) 
31      INTEGER, INTENT(in) ::   kstp   ! ocean time-step index
32      !!----------------------------------------------------------------------
33      !!                     ***  ROUTINE diurnal_layers  ***
34      !!                       
35      !! ** Purpose : - Apply coolskin and warm layer calculations
36      !!   
37      !!----------------------------------------------------------------------
38     
39      ! Cool skin
40
41      CALL diurnal_sst_coolskin_step( qns, taum, rhop(:,:,1), rdt)
42
43      CALL iom_put( "sst_wl"   , x_dsst               )    ! warm layer (write out before update below).
44      CALL iom_put( "sst_cs"   , x_csdsst             )    ! cool skin
45
46      ! Diurnal warm layer model       
47      CALL diurnal_sst_takaya_step( kstp, qsr, qns, taum, rhop(:,:,1), rdt) 
48
49   END SUBROUTINE diurnal_layers 
50   
51END MODULE diu_layers
Note: See TracBrowser for help on using the repository browser.