MFIX  2016-1
check_solids_mppic.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv!
2 ! !
3 ! SUBROUTINE: CHECK_SOLIDS_MPPIC !
4 ! Purpose: !
5 ! !
6 ! Author: J.Musser Date: 02-FEB-14 !
7 ! !
8 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^!
9  SUBROUTINE check_solids_mppic
10 
11 
12 ! Global Variables:
13 !---------------------------------------------------------------------//
14 ! Domain partitions in various directions.
15 ! use geometry, only: IMAX
16 ! use geometry, only: JMAX
17 ! use geometry, only: KMAX
18 ! Runtime flag specifying 2D simulations
19 ! use geometry, only: NO_K
20 
21 
22  USE param1
23  USE geometry
24  USE funits
25  USE discretelement
26  USE constant
27  USE physprop
28  USE fldvar
29  USE toleranc
30  USE mfix_pic
31  USE cutcell
32  USE functions
33 
34  USE mpi_utility
35 
36 
37 ! Global Parameters:
38 !---------------------------------------------------------------------//
39 ! use param1, only: UNDEFINED_I
40 
41 ! Use the error manager for posting error messages.
42 !---------------------------------------------------------------------//
43  use error_manager
44 
45  implicit none
46 
47 !-----------------------------------------------
48 
49 ! Initialize the error manager.
50  CALL init_err_msg("CHECK_SOLIDS_MPPIC")
51 
52 
53 
54 
55  IF(mppic_coeff_en1 == undefined) THEN
56  WRITE(err_msg, 1000) 'MPPIC_COEFF_EN1'
57  CALL flush_err_msg(abort=.true.)
58 
59  ELSEIF(mppic_coeff_en1 > one .OR. &
60  mppic_coeff_en1 < zero) THEN
61  WRITE(err_msg, 1001) 'MPPIC_COEFF_EN1', &
62  trim(ival(mppic_coeff_en1))
63  CALL flush_err_msg(abort=.true.)
64  ENDIF
65 
66  IF(mppic_coeff_en2 == undefined) THEN
67  WRITE(err_msg, 1000) 'MPPIC_COEFF_EN2'
68  CALL flush_err_msg(abort=.true.)
69 
70  ELSEIF(mppic_coeff_en2 > one .OR. &
71  mppic_coeff_en2 < zero) THEN
72  WRITE(err_msg, 1001) 'MPPIC_COEFF_EN2', &
73  trim(ival(mppic_coeff_en2))
74  CALL flush_err_msg(abort=.true.)
75  ENDIF
76 
77  IF(mppic_coeff_en_wall > one .OR. &
79  WRITE(err_msg, 1001) 'MPPIC_COEFF_EN_WALL', &
81  CALL flush_err_msg(abort=.true.)
82  ENDIF
83 
84  IF(mppic_coeff_et_wall > one .OR. &
86  WRITE(err_msg, 1001) 'MPPIC_COEFF_ET_WALL', &
88  CALL flush_err_msg(abort=.true.)
89  ENDIF
90 
91 
92  1000 FORMAT('Error 1000: Required input not specified: ',a,/'Please ',&
93  'correct the mfix.dat file.')
94 
95  1001 FORMAT('Error 1001: Illegal or unknown input: ',a,' = ',a,/ &
96  'Please correct the mfix.dat file.')
97 
98 
99  CALL finl_err_msg
100 
101  RETURN
102 
103  END SUBROUTINE check_solids_mppic
subroutine finl_err_msg
double precision, parameter one
Definition: param1_mod.f:29
double precision, parameter undefined
Definition: param1_mod.f:18
double precision mppic_coeff_et_wall
Definition: mfix_pic_mod.f:43
subroutine init_err_msg(CALLER)
double precision mppic_coeff_en2
Definition: mfix_pic_mod.f:42
subroutine check_solids_mppic
character(len=line_length), dimension(line_count) err_msg
double precision mppic_coeff_en1
Definition: mfix_pic_mod.f:42
double precision mppic_coeff_en_wall
Definition: mfix_pic_mod.f:43
double precision, parameter zero
Definition: param1_mod.f:27
subroutine flush_err_msg(DEBUG, HEADER, FOOTER, ABORT, LOG, CALL_TREE)