56 TYPE(t_region
),
POINTER :: regions(:)
64 INTEGER :: nregions, globalwdistmethod, sndinteg, rcvinteg
69 global => regions(1)%global
72 'TURB_CalcMetrics.F90' )
77 nregions = global%nRegions
80 nregions = global%nRegionsLocal
89 sndinteg = global%turbWallDim
90 CALL mpi_allreduce( sndinteg,rcvinteg,1,mpi_integer, mpi_sum, &
91 global%mpiComm, global%mpierr )
92 IF (global%mpierr /=0 ) CALL
errorstop( global,err_mpi_trouble,__line__ )
93 global%turbWallDim = rcvinteg
101 globalwdistmethod = 0
104 globalwdistmethod = &
105 max( globalwdistmethod , regions(ireg)%turbInput%wDistMethod )
110 sndinteg = globalwdistmethod
111 CALL fem_reduce( global%fieldFlagTurbInt,sndinteg,rcvinteg,fem_max )
112 globalwdistmethod = rcvinteg
119 IF (global%turbCalcWDistFreq == calcwdist_ini .AND. isinit == 1)
THEN
122 IF (global%turbCalcWDistFreq == calcwdist_fdt .AND. &
123 regions(1)%irkStep == global%nrkSteps)
THEN
126 IF (global%turbCalcWDistFreq == calcwdist_sdt .AND. &
127 regions(1)%irkStep == global%nrkSteps .AND. &
128 (global%currentTime+global%dtMin) >= global%dTimeSystem)
THEN
131 IF (global%turbCalcWDistFreq == calcwdist_rem)
THEN
132 CALL
errorstop( global,err_turb_ransinput,__line__, &
133 'remesh flag is required but still missing')
138 IF ((global%turbCalcWDist .eqv. .true.) .AND. (compwdist .eqv. .true.))
THEN
139 IF (globalwdistmethod == wdist_direct)
THEN
142 CALL
errorstop( global,err_turb_ransinput,__line__, &
143 'only direct method of wall distance is currently possible')
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine turb_coranswalldistov(regions)
subroutine turb_calcmetrics(regions, isInit)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)