File: /nfs/home/0/users/jenkins/mfix.git/model/check_data/check_ic_dem.f
1
2
3
4
5
6
7
8
9
10
11 SUBROUTINE CHECK_IC_DEM
12
13
14
15 USE discretelement, only : gener_part_config
16
17 USE discretelement, only: DIMN
18
19 USE discretelement, only: DES_MMAX
20
21 USE discretelement, only: DES_D_p0, DES_RO_s
22
23 USE discretelement, only: DES_CONTINUUM_HYBRID
24
25 USE param1, only: UNDEFINED, UNDEFINED_I, ZERO, ONE
26
27 Use geometry, only: xlength, ylength, zlength, dx, dy, dz
28
29
30 use error_manager
31
32 use toleranc
33
34 implicit none
35
36
37 CALL INIT_ERR_MSG("CHECK_IC_DEM")
38
39
40
41
42
43
44
45
46 IF(DIMN.EQ.2) THEN
47 IF (DES_MMAX.EQ.1) THEN
48
49
50
51
52 IF(.NOT.COMPARE(ZLENGTH,DES_D_P0(1))) THEN
53 WRITE(ERR_MSG, 1000)
54 CALL FLUSH_ERR_MSG
55 ENDIF
56 ELSE
57
58
59
60 WRITE(ERR_MSG, 1001)
61 CALL FLUSH_ERR_MSG
62 ENDIF
63 ENDIF
64
65
66 1000 FORMAT(' Message: ',&
67 'WARNING: zlength or dz(1) is used to calculate the ',&
68 'number of particles in the 2D simulation when ',&
69 'GENER_PART_CONFIG is T and DIMN = 2.',/10X,'This depth ',&
70 'does not equal D_P0(1).')
71
72 1001 FORMAT(' Message: ',&
73 'WARNING: zlength or dz(1) is used to calculate the ',&
74 'number of particles in the 2D simulation when ',&
75 'GENER_PART_CONFIG is T and DIMN = 2.')
76
77
78 IF (Gener_part_config.and.DES_CONTINUUM_HYBRID) THEN
79 WRITE(ERR_MSG, 999)
80 CALL FLUSH_ERR_MSG(ABORT=.TRUE.)
81 ENDIF
82
83 999 format('Error # 999: Gener_part_config set to', &
84 ' true for DES_continuum hybrid', /, &
85 ' This is not allowed, specify the initial particle', &
86 ' configuration explicitly', /, &
87 ' See MFIX readme', /, &
88 ' Please correct the data file.')
89
90
91
92
93
94 2018 FORMAT( 'End of Message' )
95
96
97 CALL FINL_ERR_MSG
98
99 END SUBROUTINE CHECK_IC_DEM
100
101