MFIX  2016-1
write_header.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
2 ! C
3 ! Module name: WRITE_HEADER C
4 ! Purpose: read and verify input data, open files C
5 ! C
6 ! Author: M. Syamlal Date: 18-APR-97 C
7 ! C
8 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
9 !
10  SUBROUTINE write_header
11 !...Translated by Pacific-Sierra Research VAST-90 2.06G5 12:17:31 12/09/98
12 !...Switches: -xf
13 !-----------------------------------------------
14 ! M o d u l e s
15 !-----------------------------------------------
16  USE compar
17  USE funits
18  USE machine
19  USE output
20  USE param
21  USE param1
22  USE run
23  IMPLICIT NONE
24 !-----------------------------------------------
25 ! G l o b a l P a r a m e t e r s
26 !-----------------------------------------------
27 !-----------------------------------------------
28 ! L o c a l P a r a m e t e r s
29 !-----------------------------------------------
30 !-----------------------------------------------
31 ! L o c a l V a r i a b l e s
32 !-----------------------------------------------
33 !
34 !
35 ! Memory required for the run
36  DOUBLE PRECISION :: MEMORY
37 !-----------------------------------------------
38 !
39 !
40  CALL start_log
41 !
42  IF(dmp_log)WRITE (unit_log, *) ' '
43  IF(dmp_log)WRITE (unit_log, 1005) id_version, id_node
45 !
46  IF (full_log .and. mype.eq.pe_io) THEN !//d
47  WRITE (*, *) ' '
48  WRITE (*, 1005) id_version, id_node
50  ENDIF
51 !
52 ! Calculate the memory requirement for the present run
53 !
54  memory = 9. + (8.*dimension_3/onemeg)*(95. + 32.*dimension_m + 4.*&
56  IF(dmp_log)WRITE (unit_log, '(1X,A,F7.2,A)') 'Memory required: ', memory, ' Mb'
57  IF (full_log .and. mype.eq.pe_io) THEN !//d
58  WRITE (*, '(1X,A,F7.2,A)') 'Memory required: ', memory, ' Mb'
59  WRITE (*, 1015)
60  ENDIF
61 !
62  IF(dmp_log)WRITE (unit_log, 1015)
63  CALL end_log
64 !
65  RETURN
66  1005 FORMAT(1x,'MFIX (',a10,') simulation on computer: ',a20)
67  1010 FORMAT(1x,'Run name: ',a20,2x,'Time: ',i2,':',i2.0,20x,'Date: ',i2,'-',i2&
68  ,'-',i4)
69  1015 FORMAT(72('_'))
70  END SUBROUTINE write_header
logical dmp_log
Definition: funits_mod.f:6
subroutine write_header
Definition: write_header.f:11
integer dimension_3
Definition: param_mod.f:11
integer dimension_n_g
Definition: param_mod.f:20
integer id_month
Definition: machine_mod.f:22
character(len=60) run_name
Definition: run_mod.f:24
integer id_day
Definition: machine_mod.f:23
character(len=64) id_node
Definition: machine_mod.f:19
logical full_log
Definition: output_mod.f:31
integer pe_io
Definition: compar_mod.f:30
integer id_year
Definition: machine_mod.f:24
double precision, parameter onemeg
Definition: output_mod.f:59
integer id_minute
Definition: machine_mod.f:26
integer, parameter unit_log
Definition: funits_mod.f:21
Definition: run_mod.f:13
Definition: param_mod.f:2
integer mype
Definition: compar_mod.f:24
subroutine start_log
Definition: machine_mod.f:182
integer id_hour
Definition: machine_mod.f:25
integer dimension_n_s
Definition: param_mod.f:21
integer dimension_m
Definition: param_mod.f:18
subroutine end_log
Definition: machine_mod.f:208
character(len=10) id_version
Definition: run_mod.f:42