64 TYPE(t_region
),
POINTER :: regions(:)
67 INTEGER :: ipatch,
i,
j,
k
74 INTEGER :: ilev, lbound, bctype, inoff, ijnoff, ibn, ien, ijkn, ng1, ng2
76 INTEGER :: iadd, jadd, kadd, iq
80 global => regions(1)%global
82 'TFLU_ConvertFlo2FluPatch.F90' )
86 ilev = regions(ireg)%currLevel
87 grid => regions(ireg)%levels(ilev)%grid
91 DO ipatch=1,regions(ireg)%nPatches
93 patch => regions(ireg)%levels(ilev)%patches(ipatch)
99 IF (bctype<bc_regionconf .OR. bctype>bc_regionconf+bc_range)
THEN
103 global%tofluNPatches = global%tofluNPatches + 1
104 igpatch = global%tofluNPatches
111 global%tofluNbVerts(igpatch) = global%tofluNbVerts(igpatch) + &
117 global%tofluNbFaces(igpatch) = global%tofluNbFaces(igpatch) + &
124 ELSEIF (lbound==4)
THEN
126 ELSEIF (lbound==6)
THEN
132 DO k=
kbeg+kadd,kend+kadd
136 IF (lbound==1 .OR. lbound==2)
THEN
141 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
142 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k+1)
143 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k+1)
144 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k )
146 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
147 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k )
148 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k+1)
149 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k+1)
151 ELSE IF (lbound==3 .OR. lbound==4)
THEN
154 iq = (ng2-1)*(kend-
kbeg+1)+ng1
156 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
157 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k )
158 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k+1)
159 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k+1)
161 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
162 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k+1)
163 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k+1)
164 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k )
166 ELSE IF (lbound==5 .OR. lbound==6)
THEN
171 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
172 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k )
173 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j+1,
k )
174 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k )
176 global%tofluQuad2v(1,iq,igpatch) =
grid%tofluLoc2g(
i ,
j ,
k )
177 global%tofluQuad2v(2,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j ,
k )
178 global%tofluQuad2v(3,iq,igpatch) =
grid%tofluLoc2g(
i+1,
j+1,
k )
179 global%tofluQuad2v(4,iq,igpatch) =
grid%tofluLoc2g(
i ,
j+1,
k )
194 IF (lbound==1 .OR. lbound==2)
THEN
198 ELSE IF (lbound==3 .OR. lbound==4)
THEN
201 iq = (ng2-1)*(kend-
kbeg+1)+ng1
202 ELSE IF (lbound==5 .OR. lbound==6)
THEN
207 global%tofluBLoc2g(iq,igpatch) =
grid%tofluLoc2g(
i,
j,
k)
210 global%tofluMaxBind = &
211 max( global%tofluMaxBind ,
grid%tofluLoc2g(
i,
j,
k) )
212 ELSEIF (lbound==4)
THEN
213 global%tofluMaxBind = &
214 max( global%tofluMaxBind ,
grid%tofluLoc2g(
i,
j,
k) )
215 ELSEIF (lbound==6)
THEN
216 global%tofluMaxBind = &
217 max( global%tofluMaxBind ,
grid%tofluLoc2g(
i,
j,
k) )
224 global%tofluIq(igpatch) = iq
**********************************************************************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 ibeg
subroutine convertflo2flupatch(iReg, regions)
Vector_n max(const Array_n_const &v1, const Array_n_const &v2)
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getpatchindices(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
**********************************************************************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 knode iend
subroutine rflo_getpatchindicesnodes(region, patch, iLev, ibeg, iend, jbeg, jend, kbeg, kend)
**********************************************************************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 knode jend
**********************************************************************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 knode jbeg
**********************************************************************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 knode kbeg
subroutine deregisterfunction(global)