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.
trcwri_cfc.F90 in branches/UKMO/dev_r5518_GO6_under_ice_relax_dr_hook/NEMOGCM/NEMO/TOP_SRC/CFC – NEMO

source: branches/UKMO/dev_r5518_GO6_under_ice_relax_dr_hook/NEMOGCM/NEMO/TOP_SRC/CFC/trcwri_cfc.F90 @ 11738

Last change on this file since 11738 was 11738, checked in by marc, 4 years ago

The Dr Hook changes from my perl code.

File size: 3.1 KB
Line 
1MODULE trcwri_cfc
2   !!======================================================================
3   !!                       *** MODULE trcwri ***
4   !!    cfc :   Output of cfc tracers
5   !!======================================================================
6   !! History :   1.0  !  2009-05 (C. Ethe)  Original code
7   !!----------------------------------------------------------------------
8#if defined key_top && defined key_cfc && defined key_iomput
9   !!----------------------------------------------------------------------
10   !!   'key_cfc'                                           cfc model
11   !!----------------------------------------------------------------------
12   !! trc_wri_cfc   :  outputs of concentration fields
13   !!----------------------------------------------------------------------
14   USE trc         ! passive tracers common variables
15   USE iom         ! I/O manager
16
17   USE yomhook, ONLY: lhook, dr_hook
18   USE parkind1, ONLY: jprb, jpim
19
20   IMPLICIT NONE
21   PRIVATE
22
23   PUBLIC trc_wri_cfc 
24
25#  include "top_substitute.h90"
26CONTAINS
27
28   SUBROUTINE trc_wri_cfc
29      !!---------------------------------------------------------------------
30      !!                     ***  ROUTINE trc_wri_trc  ***
31      !!
32      !! ** Purpose :   output passive tracers fields
33      !!---------------------------------------------------------------------
34      CHARACTER (len=20)   :: cltra
35      INTEGER              :: jn
36      INTEGER(KIND=jpim), PARAMETER :: zhook_in = 0
37      INTEGER(KIND=jpim), PARAMETER :: zhook_out = 1
38      REAL(KIND=jprb)               :: zhook_handle
39
40      CHARACTER(LEN=*), PARAMETER :: RoutineName='TRC_WRI_CFC'
41
42      IF (lhook) CALL dr_hook(RoutineName,zhook_in,zhook_handle)
43
44      !!---------------------------------------------------------------------
45 
46      ! write the tracer concentrations in the file
47      ! ---------------------------------------
48      DO jn = jp_cfc0, jp_cfc1
49         cltra = TRIM( ctrcnm(jn) )                  ! short title for tracer
50         CALL iom_put( cltra, trn(:,:,:,jn) )
51      END DO
52      !
53      IF (lhook) CALL dr_hook(RoutineName,zhook_out,zhook_handle)
54   END SUBROUTINE trc_wri_cfc
55
56#else
57   !!----------------------------------------------------------------------
58   !!  Dummy module :                                     No passive tracer
59   !!----------------------------------------------------------------------
60   PUBLIC trc_wri_cfc
61CONTAINS
62   SUBROUTINE trc_wri_cfc                     ! Empty routine 
63   INTEGER(KIND=jpim), PARAMETER :: zhook_in = 0
64   INTEGER(KIND=jpim), PARAMETER :: zhook_out = 1
65   REAL(KIND=jprb)               :: zhook_handle
66
67   CHARACTER(LEN=*), PARAMETER :: RoutineName='TRC_WRI_CFC'
68
69   IF (lhook) CALL dr_hook(RoutineName,zhook_in,zhook_handle)
70
71   IF (lhook) CALL dr_hook(RoutineName,zhook_out,zhook_handle)
72   END SUBROUTINE trc_wri_cfc
73#endif
74
75   !!----------------------------------------------------------------------
76   !! NEMO/TOP 3.3 , NEMO Consortium (2010)
77   !! $Id$
78   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)
79   !!======================================================================
80END MODULE trcwri_cfc
Note: See TracBrowser for help on using the repository browser.