SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
town_presence.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 town_presence (&
7  hfiletype,oteb)
8 ! #################################################################################
9 !
10 !
11 !
12 !
14 !
15 USE yomhook ,ONLY : lhook, dr_hook
16 USE parkind1 ,ONLY : jprb
17 !
18 IMPLICIT NONE
19 !
20 !* 0.1 declarations of arguments
21 !
22 !
23 !
24  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! type of input file
25 LOGICAL, INTENT(OUT) :: oteb ! TRUE if TEB data exist in the file
26 !
27 !* 0.2 declarations of local variables
28 !
29 INTEGER :: iresp ! reading return code
30  CHARACTER(LEN=6) :: ytown ! scheme for towns in input file
31 INTEGER :: idim_town ! number of TEB points in input file
32 REAL(KIND=JPRB) :: zhook_handle
33 !-------------------------------------------------------------------------------------
34 !
35 !* 1. reads if TEB fields exist in the input file
36 ! -------------------------------------------
37 !
38 IF (lhook) CALL dr_hook('TOWN_PRESENCE',0,zhook_handle)
39 !
40  CALL read_surf(&
41  hfiletype,'TOWN',ytown,iresp)
42  CALL read_surf(&
43  hfiletype,'DIM_TOWN',idim_town,iresp)
44 !
45 oteb = (ytown=='TEB ') .AND. (idim_town > 0)
46 IF (lhook) CALL dr_hook('TOWN_PRESENCE',1,zhook_handle)
47 !
48 !---------------------------------------------------------------------------------------
49 !
50 END SUBROUTINE town_presence
subroutine town_presence(HFILETYPE, OTEB)