MFIX  2016-1
check_plane.f
Go to the documentation of this file.
1 !vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvC
2 ! C
3 ! Module name: CHECK_PLANE C
4 ! Purpose: make sure the flow boundary condition or internal surface C
5 ! is a plane C
6 ! C
7 ! Author: P. Nicoletti Date: 10-DEC-91 C
8 ! Reviewer: M.SYAMLAL, W.ROGERS, P.NICOLETTI Date: 24-JAN-92 C
9 ! C
10 ! Revision Number: C
11 ! Purpose: C
12 ! Author: Date: dd-mmm-yy C
13 ! Reviewer: Date: dd-mmm-yy C
14 ! C
15 ! Literature/Document References: C
16 ! C
17 ! C
18 !^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^C
19 
20  SUBROUTINE check_plane(X_CONSTANT, Y_CONSTANT, Z_CONSTANT, BC, NAME)
21 
22 !-----------------------------------------------
23 ! Modules
24 !-----------------------------------------------
25  USE compar
26  USE exit, only: mfix_exit
27  USE funits
28 
29  IMPLICIT NONE
30 
31 !-----------------------------------------------
32 ! Dummy arguments
33 !-----------------------------------------------
34 ! surface indicators
35  LOGICAL, INTENT(IN) :: X_CONSTANT,Y_CONSTANT,Z_CONSTANT
36 ! boundary condition or internal surface index
37  INTEGER, INTENT(IN) :: BC
38 ! BC or IS
39  CHARACTER(LEN=2), INTENT(IN) :: NAME
40 !-----------------------------------------------
41 ! Local variables
42 !-----------------------------------------------
43 ! number of directions that are not constant (must equal 2)
44  INTEGER :: N
45 !-----------------------------------------------
46 
47 
48 ! number of directions that are not constant (must equal 2)
49  n = 3
50  IF (x_constant) n = n - 1
51  IF (y_constant) n = n - 1
52  IF (z_constant) n = n - 1
53 
54  IF (n /= 2) THEN
55  IF(dmp_log)WRITE (unit_log, 1000) name, bc
56  call mfix_exit(mype)
57  ENDIF
58 
59  RETURN
60 
61  1000 FORMAT(/70('*')//' From: CHECK_PLANE',/'Message: ',a,' No ',i3,&
62  ' is not a plane',/70('*')/)
63  END SUBROUTINE check_plane
64 
logical dmp_log
Definition: funits_mod.f:6
subroutine check_plane(X_CONSTANT, Y_CONSTANT, Z_CONSTANT, BC, NAM
Definition: check_plane.f:21
subroutine mfix_exit(myID, normal_termination)
Definition: exit.f:5
Definition: exit.f:2
integer, parameter unit_log
Definition: funits_mod.f:21
integer mype
Definition: compar_mod.f:24
Definition: bc_mod.f:23