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.
diamlr.F90 in NEMO/branches/2019/dev_r11879_ENHANCE-05_SimonM-Harmonic_Analysis/src/OCE/DIA – NEMO

source: NEMO/branches/2019/dev_r11879_ENHANCE-05_SimonM-Harmonic_Analysis/src/OCE/DIA/diamlr.F90 @ 11910

Last change on this file since 11910 was 11910, checked in by smueller, 4 years ago

Inclusion of a skeletal version of the new module diamlr that will be used to manage the IOM context for multiple-linear-regression analysis of model fields (ticket #2175)

File size: 2.7 KB
Line 
1MODULE diamlr
2   !!======================================================================
3   !!                       ***  MODULE  diamlr  ***
4   !! Management of the IOM context for multiple-linear-regression analysis
5   !!======================================================================
6   !! History :       !  2019  (S. Mueller)
7   !!----------------------------------------------------------------------
8
9   USE in_out_manager , ONLY :   lwp, numout, ln_timing
10   USE timing         , ONLY :   timing_start, timing_stop
11
12   IMPLICIT NONE
13   PRIVATE
14
15   LOGICAL, PUBLIC ::   lk_diamlr = .FALSE.
16
17   PUBLIC ::   dia_mlr_init, dia_mlr_iom_init, dia_mlr
18
19   !!----------------------------------------------------------------------
20   !! NEMO/OCE 4.0 , NEMO Consortium (2019)
21   !! $Id$
22   !! Software governed by the CeCILL license (see ./LICENSE)
23   !!----------------------------------------------------------------------
24CONTAINS
25   
26   SUBROUTINE dia_mlr_init
27      !!----------------------------------------------------------------------
28      !!                 ***  ROUTINE dia_mlr_init  ***
29      !!
30      !! ** Purpose : initialisation of IOM context management for
31      !!              multiple-linear-regression analysis
32      !!
33      !!----------------------------------------------------------------------
34
35      lk_diamlr = .TRUE.
36
37      IF(lwp) THEN
38         WRITE(numout, *)
39         WRITE(numout, *) 'dia_mlr_init : initialisation of IOM context management for'
40         WRITE(numout, *) '~~~~~~~~~~~~   multiple-linear-regression analysis'
41      END IF
42
43   END SUBROUTINE dia_mlr_init
44
45   SUBROUTINE dia_mlr_iom_init
46      !!----------------------------------------------------------------------
47      !!               ***  ROUTINE dia_mlr_iom_init  ***
48      !!
49      !! ** Purpose : IOM context setup for multiple-linear-regression
50      !!              analysis
51      !!
52      !!----------------------------------------------------------------------
53
54      IF(lwp) THEN
55         WRITE(numout, *)
56         WRITE(numout, *) 'dia_mlr_iom_init : IOM context setup for multiple-linear-regression'
57         WRITE(numout, *) '~~~~~~~~~~~~~~~~
58      END IF
59
60   END SUBROUTINE dia_mlr_iom_init
61
62   SUBROUTINE dia_mlr
63      !!----------------------------------------------------------------------
64      !!                   ***  ROUTINE dia_mlr  ***
65      !!
66      !! ** Purpose : update time used in multiple-linear-regression analysis
67      !!
68      !!----------------------------------------------------------------------
69
70      IF( ln_timing )   CALL timing_start('dia_mlr')
71
72      ! Update time
73     
74      IF( ln_timing )   CALL timing_stop('dia_mlr')
75
76   END SUBROUTINE dia_mlr
77
78END MODULE diamlr
Note: See TracBrowser for help on using the repository browser.