58 TYPE(t_region
),
POINTER :: regions(:)
62 INTEGER :: ireg, ipatch
65 INTEGER :: ilev, bctype
69 global => regions(1)%global
71 'PREP_CheckBcValidity.F90' )
75 ilev = global%startLevel
77 DO ireg = 1,global%nRegions
78 DO ipatch=1,regions(ireg)%nPatches
80 patch => regions(ireg)%levels(ilev)%patches(ipatch)
86 IF (.NOT. global%prepBcDefined(bc_slipwall)) &
87 CALL
errorstop( global,err_no_bcspecified,__line__, &
88 'BC_SLIPW is used in .top but not defined in .bc file' )
91 IF (.NOT. global%prepBcDefined(bc_noslipwall)) &
92 CALL
errorstop( global,err_no_bcspecified,__line__, &
93 'BC_NOSLIP is used in .top but not defined in .bc file' )
96 IF (.NOT. global%prepBcDefined(bc_inflow) .AND. &
97 .NOT. global%prepBcDefined(bc_inflow_totang) .AND. &
98 .NOT. global%prepBcDefined(bc_inflow_veltemp) .AND. &
99 .NOT. global%prepBcDefined(bc_inflow_velpress)) &
100 CALL
errorstop( global,err_no_bcspecified,__line__, &
101 'BC_INFLOW_... is used in .top but not defined in .bc file' )
104 IF (.NOT. global%prepBcDefined(bc_outflow)) &
105 CALL
errorstop( global,err_no_bcspecified,__line__, &
106 'BC_OUTFLOW is used in .top but not defined in .bc file' )
109 IF (.NOT. global%prepBcDefined(bc_farfield)) &
110 CALL
errorstop( global,err_no_bcspecified,__line__, &
111 'BC_FARF is used in .top but not defined in .bc file' )
114 IF (.NOT. global%prepBcDefined(bc_injection) .AND. &
115 .NOT. global%prepBcDefined(bc_injection_apn)) &
116 CALL
errorstop( global,err_no_bcspecified,__line__, &
117 'BC_INJECT is used in .top but not defined in .bc file' )
119 IF (global%prepBcDefined(bc_injection_apn) .AND. &
120 patch%bcCoupled == bc_external) &
121 CALL
errorstop( global,err_external_funct,__line__, &
122 'BC_INJECT_APN used in .bc with interaction flag in .top file' )
subroutine checkbcvalidity(regions)
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)