The TELEMAC-MASCARET system  trunk
attend.f
Go to the documentation of this file.
1 ! ***********************
2  SUBROUTINE attend(ISEC)
3 ! ***********************
4 !
5 !
6 !***********************************************************************
7 ! BIEF V6P1 21/08/2010
8 !***********************************************************************
9 !
10 !brief WAITS FOR A PERIOD OF TIME: ISEC IN SECONDS.
11 !
12 !note PLEASE ADD OR REMOVE COMMENTS ACCORDING TO YOUR COMPILER
13 !
14 !history NATHALY BARBRY (UNIVERSITE DE CAEN); J-M HERVOUET (LNHE)
15 !+ 08/02/2001
16 !+ V5P2
17 !+
18 !
19 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
20 !+ 13/07/2010
21 !+ V6P0
22 !+ Translation of French comments within the FORTRAN sources into
23 !+ English comments
24 !
25 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
26 !+ 21/08/2010
27 !+ V6P0
28 !+ Creation of DOXYGEN tags for automated documentation and
29 !+ cross-referencing of the FORTRAN sources
30 !
31 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 !| ISEC |-->| THE LAPSE OF TIME TO WAIT
33 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34 !
35  IMPLICIT NONE
36 !-----------------------------------------------------------------------
37 ! VERSION F90 STANDARD
38 !-----------------------------------------------------------------------
39 !
40  INTEGER, INTENT(IN) :: ISEC
41  INTEGER T1,T2
42  INTEGER TIME_IN_SECONDS
43  EXTERNAL time_in_seconds
44  t1 = time_in_seconds()
45  t2 = t1
46 ! .AND. : WHEN CLOCK RESET TO ZERO
47  DO WHILE (t2.LT.t1+isec.AND.t2.GE.t1)
48  t2 = time_in_seconds()
49  END DO
50 !
51 !-----------------------------------------------------------------------
52 ! VERSION F95 NAG
53 !-----------------------------------------------------------------------
54 !
55 ! USE F90_UNIX_PROC
56 ! INTEGER, INTENT(IN) :: ISEC
57 ! CALL SLEEP(ISEC)
58 !
59 !-----------------------------------------------------------------------
60 !
61  RETURN
62  END
subroutine attend(ISEC)
Definition: attend.f:4