67 TYPE(t_region
),
POINTER :: regions(:)
70 INTEGER :: ireg,
i,
j,
k
74 INTEGER :: icoff, ijcoff, ijkc
76 REAL(RFREAL) :: enerlocal,ibarealocal,inbarealocal,masslocal,xmomlocal, &
77 ymomlocal,zmomlocal,vollocal
79 DOUBLE PRECISION,
DIMENSION(MAN_INTEG_SIZE) :: integ
80 REAL(RFREAL),
DIMENSION(MAN_INTEG_SIZE) :: globalvals,localvals
82 REAL(RFREAL),
DIMENSION(2) :: globalvals,localvals
84 REAL(RFREAL),
POINTER :: cv(:,:), vol(:)
90 global => regions(1)%global
93 'RFLO_ComputeIntegralValues.F90')
100 masslocal = 0.0_rfreal
102 DO ireg = 1,global%nRegions
103 IF (regions(ireg)%procid==global%myProcid .AND. &
104 regions(ireg)%active==active)
THEN
106 ilev = regions(ireg)%currLevel
112 cv => regions(ireg)%levels(ilev)%mixt%cv
113 vol => regions(ireg)%levels(ilev)%grid%vol
120 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
121 vollocal = vollocal + vol(ijkc)
122 masslocal = masslocal + cv(cv_mixt_dens,ijkc)*vol(ijkc)
132 xmomlocal = 0.0_rfreal
133 ymomlocal = 0.0_rfreal
134 zmomlocal = 0.0_rfreal
135 enerlocal = 0.0_rfreal
139 inbarealocal = 0.0_rfreal
140 ibarealocal = 0.0_rfreal
148 localvals(man_integ_vol ) = vollocal
149 localvals(man_integ_mass ) = masslocal
150 localvals(man_integ_xmom ) = xmomlocal
151 localvals(man_integ_ymom ) = ymomlocal
152 localvals(man_integ_zmom ) = zmomlocal
153 localvals(man_integ_ener ) = enerlocal
154 localvals(man_integ_ibarea ) = ibarealocal
155 localvals(man_integ_inbarea) = inbarealocal
157 localvals(1) = vollocal
158 localvals(2) = masslocal
164 CALL mpi_allreduce( localvals,globalvals,
SIZE(localvals),mpi_rfreal,mpi_sum,&
165 global%mpiComm,global%mpierr )
166 IF (global%mpierr /= 0) CALL
errorstop( global,err_mpi_trouble,__line__ )
168 DO i = 1,
SIZE(localvals)
169 globalvals(
i) = localvals(
i)
176 DO i = 1,man_integ_size
177 integ(
i) = globalvals(
i)
180 global%totalVol = globalvals(1)
181 global%totalMass = globalvals(2)
**********************************************************************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
subroutine rflo_computeintegralvalues(regions)
**********************************************************************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 rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************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)