52 indbeg,indend,jndbeg,jndend,kndbeg,kndend )
65 TYPE(t_region
) :: region
67 INTEGER :: indbeg, indend, jndbeg, jndend, kndbeg, kndend
70 INTEGER ::
i,
j,
k, idum, jdum, kdum
75 INTEGER :: ilev, inoff, ijnoff
76 INTEGER :: ijkni, ijknj, ijknk, ijknd
77 INTEGER :: ig(3), jg(3), kg(3)
78 INTEGER :: idumb(3), jdumb(3), kdumb(3), idume(3), jdume(3), kdume(3)
82 global => region%global
84 'RFLO_C2fAvgCoeffsDummyConn.F90' )
88 ilev = region%currLevel
91 idumb(:) = -
idir*region%nDumCells
92 jdumb(:) = -
jdir*region%nDumCells
93 kdumb(:) = -
kdir*region%nDumCells
98 ig(:) = -
idir*(region%nDumCells-1)
99 jg(:) = -
jdir*(region%nDumCells-1)
100 kg(:) = -
kdir*(region%nDumCells-1)
108 ijkni = indijk(
i+ig(1),
j+jg(1),
k+kg(1),inoff,ijnoff)
109 ijknj = indijk(
i+ig(2),
j+jg(2),
k+kg(2),inoff,ijnoff)
110 ijknk = indijk(
i+ig(3),
j+jg(3),
k+kg(3),inoff,ijnoff)
114 DO idum=idumb(1),idume(1)
115 DO jdum=jdumb(1),jdume(1)
116 DO kdum=kdumb(1),kdume(1)
117 ijknd = indijk(
i+idum,
j+jdum,
k+kdum,inoff,ijnoff)
118 region%levels(ilev)%grid%c2fCoI(2,ijknd) = &
119 region%levels(ilev)%grid%c2fCoI(2,ijkni)
120 region%levels(ilev)%grid%c2fCoI(1,ijknd) = &
121 1._rfreal-region%levels(ilev)%grid%c2fCoI(2,ijknd)
126 DO idum=idumb(2),idume(2)
127 DO jdum=jdumb(2),jdume(2)
128 DO kdum=kdumb(2),kdume(2)
129 ijknd = indijk(
i+idum,
j+jdum,
k+kdum,inoff,ijnoff)
130 region%levels(ilev)%grid%c2fCoJ(2,ijknd) = &
131 region%levels(ilev)%grid%c2fCoJ(2,ijknj)
132 region%levels(ilev)%grid%c2fCoJ(1,ijknd) = &
133 1._rfreal-region%levels(ilev)%grid%c2fCoJ(2,ijknd)
138 DO idum=idumb(3),idume(3)
139 DO jdum=jdumb(3),jdume(3)
140 DO kdum=kdumb(3),kdume(3)
141 ijknd = indijk(
i+idum,
j+jdum,
k+kdum,inoff,ijnoff)
142 region%levels(ilev)%grid%c2fCoK(2,ijknd) = &
143 region%levels(ilev)%grid%c2fCoK(2,ijknk)
144 region%levels(ilev)%grid%c2fCoK(1,ijknd) = &
145 1._rfreal-region%levels(ilev)%grid%c2fCoK(2,ijknd)
172 INTEGER :: inbeg, inend, jnbeg, jnend, knbeg, knend
173 INTEGER :: ijkn, ijkn1, iref, jref, kref
174 REAL(RFREAL),
POINTER :: avgco(:,:)
176 IF (lbound==1 .OR. lbound==3 .OR. lbound==5)
THEN
177 inbeg = indbeg-
idir*region%nDumCells
178 jnbeg = jndbeg-
jdir*region%nDumCells
179 knbeg = kndbeg-
kdir*region%nDumCells
187 inend = indend-
idir*region%nDumCells
188 jnend = jndend-
jdir*region%nDumCells
189 knend = kndend-
kdir*region%nDumCells
192 IF ((lbound==1).OR.(lbound==2))
THEN
193 avgco => region%levels(ilev)%grid%c2fCoI
201 ijkn = indijk(
i ,jnbeg ,
k,inoff,ijnoff)
202 ijkn1 = indijk(iref ,jnbeg ,
k,inoff,ijnoff)
203 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
204 avgco(:,ijkn)=avgco(:,ijkn1)
206 ijkn = indijk(
i ,jnend ,
k,inoff,ijnoff)
207 ijkn1 = indijk(iref ,jnend ,
k,inoff,ijnoff)
208 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
209 avgco(:,ijkn)=avgco(:,ijkn1)
213 ijkn = indijk(
i ,
j,knbeg ,inoff,ijnoff)
214 ijkn1 = indijk(iref ,
j,knbeg ,inoff,ijnoff)
215 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
216 avgco(:,ijkn)=avgco(:,ijkn1)
218 ijkn = indijk(
i ,
j,knend ,inoff,ijnoff)
219 ijkn1 = indijk(iref ,
j,knend ,inoff,ijnoff)
220 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
221 avgco(:,ijkn)=avgco(:,ijkn1)
225 ELSEIF ((lbound==3).OR.(lbound==4))
THEN
226 avgco => region%levels(ilev)%grid%c2fCoJ
234 ijkn = indijk(inbeg ,
j ,
k,inoff,ijnoff)
235 ijkn1 = indijk(inbeg ,jref ,
k,inoff,ijnoff)
236 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
237 avgco(:,ijkn)=avgco(:,ijkn1)
239 ijkn = indijk(inend ,
j ,
k,inoff,ijnoff)
240 ijkn1 = indijk(inend ,jref ,
k,inoff,ijnoff)
241 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
242 avgco(:,ijkn)=avgco(:,ijkn1)
246 ijkn = indijk(
i,
j ,knbeg ,inoff,ijnoff)
247 ijkn1 = indijk(
i,jref ,knbeg ,inoff,ijnoff)
248 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
249 avgco(:,ijkn)=avgco(:,ijkn1)
251 ijkn = indijk(
i,
j ,knend ,inoff,ijnoff)
252 ijkn1 = indijk(
i,jref ,knend ,inoff,ijnoff)
253 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
254 avgco(:,ijkn)=avgco(:,ijkn1)
258 ELSEIF ((lbound==5).OR.(lbound==6))
THEN
259 avgco => region%levels(ilev)%grid%c2fCoK
267 ijkn = indijk(
i,jnbeg ,
k ,inoff,ijnoff)
268 ijkn1 = indijk(
i,jnbeg ,kref ,inoff,ijnoff)
269 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
270 avgco(:,ijkn)=avgco(:,ijkn1)
272 ijkn = indijk(
i,jnend ,
k ,inoff,ijnoff)
273 ijkn1 = indijk(
i,jnend ,kref ,inoff,ijnoff)
274 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
275 avgco(:,ijkn)=avgco(:,ijkn1)
279 ijkn = indijk(inbeg ,
j,
k ,inoff,ijnoff)
280 ijkn1 = indijk(inbeg ,
j,kref ,inoff,ijnoff)
281 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
282 avgco(:,ijkn)=avgco(:,ijkn1)
284 ijkn = indijk(inend ,
j,
k ,inoff,ijnoff)
285 ijkn1 = indijk(inend ,
j,kref ,inoff,ijnoff)
286 IF (avgco(1,ijkn)==0._rfreal .OR. avgco(2,ijkn)==0._rfreal)
THEN
287 avgco(:,ijkn)=avgco(:,ijkn1)
subroutine registerfunction(global, funName, fileName)
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 jdir
**********************************************************************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 idir
**********************************************************************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 kdir
subroutine deregisterfunction(global)
subroutine avgcopatchedge
subroutine rflo_c2favgcoeffsdummyconn(region, lbound, idir, jdir, kdir, indBeg, indEnd, jndBeg, jndEnd, kndBeg, kndEnd)