59 TYPE(t_region
),
POINTER :: regions(:)
61 INTEGER,
INTENT(IN) :: ireg
67 INTEGER :: ilev, npatches, bctype, iregsrc, irequest
69 INTEGER ::
status(mpi_status_size)
79 global => regions(1)%global
82 'TURB_rFLO_RansClearSendRequests.F90' )
84 IF (regions(ireg)%turbInput%modelClass /= model_rans) goto 999
89 ilev = regions(ireg)%currLevel
90 npatches = regions(ireg)%nPatches
96 patch => regions(ireg)%levels(ilev)%patches(ipatch)
99 iregsrc =
patch%srcRegion
100 irequest =
patch%turb%iRequest
104 dowait = ((bctype>=bc_regionconf .AND. bctype<=bc_regionconf+bc_range) .OR. &
105 (bctype>=bc_regionint .AND. bctype<=bc_regionint +bc_range) .OR. &
106 (bctype>=bc_regnonconf .AND. bctype<=bc_regnonconf+bc_range) .OR. &
107 (bctype>=bc_tra_peri .AND. bctype<=bc_tra_peri +bc_range) .OR. &
108 (bctype>=bc_rot_peri .AND. bctype<=bc_rot_peri +bc_range))
110 IF (iregsrc > 0)
THEN
111 IF (dowait .AND. (regions(iregsrc)%procid /= global%myProcid))
THEN
112 CALL mpi_wait( global%requests(irequest),
status, global%mpierr )
113 IF (global%mpierr /= err_none) &
114 CALL
errorstop( global,err_mpi_trouble,__line__ )
122 IF (global%nProcAlloc>1)
THEN
123 DO ir=1,global%nRegions
124 IF (regions(ireg)%levels(ilev)%sndTurbEcCells(ir)%nCells > 0)
THEN
125 irequest = regions(ireg)%levels(ilev)%sndTurbEcCells(ir)%iRequest
126 CALL mpi_wait( global%requests(irequest),
status,global%mpierr )
127 IF (global%mpierr /= 0) CALL
errorstop( global,err_mpi_trouble,__line__ )
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine turb_ranssageteddyvis(region)
subroutine turb_rflo_ransclearsendrequests(regions, iReg)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)