The TELEMAC-MASCARET system  trunk
bief_init.f
Go to the documentation of this file.
1 ! ********************
2  SUBROUTINE bief_init
3 ! ********************
4 !
5  &(chaine,ncar,pinit)
6 !
7 !***********************************************************************
8 ! BIEF V6P1 21/08/2010
9 !***********************************************************************
10 !
11 !brief
12 !
13 !history J-M HERVOUET (LNH)
14 !+
15 !+ V6P0
16 !+
17 !
18 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
19 !+ 13/07/2010
20 !+ V6P0
21 !+ Translation of French comments within the FORTRAN sources into
22 !+ English comments
23 !
24 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
25 !+ 21/08/2010
26 !+ V6P0
27 !+ Creation of DOXYGEN tags for automated documentation and
28 !+ cross-referencing of the FORTRAN sources
29 !
30 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 !| CHAINE |<->| NAME OF CURRENT DIRECTORY
32 !| CODE |-->| NAME OF CALLING PROGRAMME
33 !| NCAR |<->| LENGTH OF CHAIN
34 !| PINIT |-->| LOGICAL, IF YES, INITIALIZE PARALLELISM
35 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36 !
37  USE bief, ex_bief_init => bief_init
39 !
41  IMPLICIT NONE
42 !
43 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
44 !
45  LOGICAL, INTENT(IN) :: PINIT
46  CHARACTER(LEN=MAXLENTMPDIR), INTENT(INOUT) :: CHAINE
47  INTEGER, INTENT(INOUT) :: NCAR
48 !
49 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
50 !
51 ! TO RUN IN PARALLEL MODE
52 !
53 ! P_INIT (PARALLEL) RETURNS THE WORKING DIRECTORY AND ITS LENGTH
54 ! P_INIT (PARAVOID) RETURNS NCAR = 0 AND NCSIZE = 0
55 !
56  IF(pinit) CALL p_init(chaine,ncar,ipid,ncsize)
57 !
58 !-----------------------------------------------------------------------
59 !
60 ! LANGUAGE AND LOGICAL UNIT FOR OUTPUTS
61 !
62  CALL read_config(chaine,ncar)
63 
64 #if defined BOGUS
65  ! Bogus call so that they are added when running rescan
66  CALL inpoly
67 #endif
68 !
69 !-----------------------------------------------------------------------
70 !
71  RETURN
72  END
subroutine bief_init(CHAINE, NCAR, PINIT)
Definition: bief_init.f:7
subroutine read_config(CHAINE, NCAR)
Definition: read_config.f:7
subroutine p_init(CHAINE, NCAR, IPID, NCSIZE)
Definition: p_init.F:7
logical function inpoly(X, Y, XSOM, YSOM, NSOM)
Definition: inpoly.f:7
Definition: bief.f:3