63 TYPE(t_region
),
INTENT(INOUT) :: region
66 INTEGER ::
i,
j,
k,ipcls
69 CHARACTER(CHRLEN) :: rcsidentstring
72 INTEGER :: ilev,icoff,ijcoff,ijkc0
75 REAL(RFREAL),
POINTER,
DIMENSION(:,:) :: mixtcv,peulcv,plagcv
81 rcsidentstring =
'$RCSfile: INRT_TwoDimAverage.F90,v $ $Revision: 1.4 $'
83 global => region%global
86 'INRT_TwoDimAverage.F90' )
92 ilev = region%currLevel
98 mixtcv => region%levels(ilev)%mixt%cv
100 peulcv => region%levels(ilev)%peul%cv
103 plagcv => region%levels(ilev)%plag%cv
106 SELECT CASE (region%inrtInput%twoDAverage)
119 ijkc0 = indijk(
i,
j,
k,icoff,ijcoff)
120 mixtcv(cv_mixt_zmom,ijkc0) = 0._rfreal
130 IF (global%plagUsed) npcls = region%levels(ilev)%plag%nPcls
134 plagcv(cv_plag_zmom,ipcls) = 0._rfreal
143 IF (global%peulUsed)
THEN
144 CALL
k_average(peulcv,region%levels(ilev)%peul%nCv)
149 CALL
errorstop(global,err_reached_default,__line__)
163 REAL(RFREAL),
POINTER :: cv(:,:)
164 INTEGER,
INTENT(IN) :: ncv
167 REAL(RFREAL) :: csum,vsum
168 REAL(RFREAL),
POINTER :: vol(:)
170 vol => region%levels(ilev)%grid%vol
179 ijkc0 = indijk(
i,
j,
k,icoff,ijcoff)
180 csum = csum + vol(ijkc0) * cv(icv,ijkc0)
181 vsum = vsum + vol(ijkc0)
186 ijkc0 = indijk(
i,
j,
k,icoff,ijcoff)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE kpcbeg
subroutine registerfunction(global, funName, fileName)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jpcbeg
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE ipcend
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE ipcbeg
subroutine inrt_twodimaverage(region)
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine k_average(cv, nCv)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jpcend
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)