SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
utcic_stress.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 ! ##########################################################################
6 SUBROUTINE utcic_stress(PTSTEP, PUTCI, PUTCIC )
7 ! ##########################################################################
8 !
9 !!**** *UTCIC_STRESS*
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 ! Integrates the UTCI index according to several heat stress ranges
15 !
16 !
17 !!** METHOD
18 ! ------
19 !
20 !! EXTERNAL
21 !! --------
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! REFERENCE
27 !! ---------
28 !! www.utci.org
29 !!
30 !! AUTHOR
31 !! ------
32 !!
33 !! V. Masson * Meteo-France *
34 !!
35 !! MODIFICATIONS
36 !! -------------
37 !! Original 10/2013
38 !-------------------------------------------------------------------------------
39 !
40 !* 0. DECLARATIONS
41 ! ------------
42 !
43 USE modd_utci
44 !
45 USE yomhook ,ONLY : lhook, dr_hook
46 USE parkind1 ,ONLY : jprb
47 !
48 IMPLICIT NONE
49 !
50 !* 0.1 declarations of arguments
51 REAL, INTENT(IN) :: ptstep ! time-step (s)
52 REAL, DIMENSION(:), INTENT(IN) :: putci ! UTCI (C)
53 REAL, DIMENSION(:,:), INTENT(INOUT) :: putcic ! Time cumulated in each sheat-stress range (s)
54 !
55 !* 0.2 declarations of local variables
56 !
57 INTEGER :: jstress ! Loop counter on stress ranges
58 !
59 REAL(KIND=JPRB) :: zhook_handle
60 !
61 !-------------------------------------------------------------------------------------
62 !
63 IF (lhook) CALL dr_hook('UTCIC_STRESS',0,zhook_handle)
64 !
65 DO jstress=1,nutci_stress
66 !* loop on each stress range
67  !* integrates time when in the heat/cold stress range
68  WHERE (putci(:)>xutci_stress_limits(jstress-1) .AND. putci(:)<=xutci_stress_limits(jstress))
69  putcic(:,jstress) = putcic(:,jstress) + ptstep
70  END WHERE
71 END DO
72 !
73 IF (lhook) CALL dr_hook('UTCIC_STRESS',1,zhook_handle)
74 !-------------------------------------------------------------------------------------
75 !
76 END SUBROUTINE utcic_stress
subroutine utcic_stress(PTSTEP, PUTCI, PUTCIC)
Definition: utcic_stress.F90:6