File: RELATIVE:/../../../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
22
23 USE discretelement, only: DES_CONTINUUM_HYBRID
24
25
26 Use geometry, only: zlength
27
28
29 use error_manager
30
31 use toleranc
32
33 implicit none
34
35
36 CALL INIT_ERR_MSG("CHECK_IC_DEM")
37
38
39
40
41
42
43
44
45 IF(DIMN.EQ.2) THEN
46 IF (DES_MMAX.EQ.1) THEN
47
48
49
50
51 IF(.NOT.COMPARE(ZLENGTH,DES_D_P0(1))) THEN
52 WRITE(ERR_MSG, 1000)
53 CALL FLUSH_ERR_MSG
54 ENDIF
55 ELSE
56
57
58
59 WRITE(ERR_MSG, 1001)
60 CALL FLUSH_ERR_MSG
61 ENDIF
62 ENDIF
63
64
65 1000 FORMAT(' Message: ',&
66 'WARNING: zlength or dz(1) is used to calculate the ',&
67 'number of particles in the 2D simulation when ',&
68 'GENER_PART_CONFIG is T and DIMN = 2.',/10X,'This depth ',&
69 'does not equal D_P0(1).')
70
71 1001 FORMAT(' Message: ',&
72 'WARNING: zlength or dz(1) is used to calculate the ',&
73 'number of particles in the 2D simulation when ',&
74 'GENER_PART_CONFIG is T and DIMN = 2.')
75
76
77 IF (Gener_part_config.and.DES_CONTINUUM_HYBRID) THEN
78 WRITE(ERR_MSG, 999)
79 CALL FLUSH_ERR_MSG(ABORT=.TRUE.)
80 ENDIF
81
82 999 format('Error # 999: Gener_part_config set to', &
83 ' true for DES_continuum hybrid', /, &
84 ' This is not allowed, specify the initial particle', &
85 ' configuration explicitly', /, &
86 ' See MFIX readme', /, &
87 ' Please correct the data file.')
88
89 CALL FINL_ERR_MSG
90
91 END SUBROUTINE CHECK_IC_DEM
92