77 TYPE(t_region
) :: region
79 INTEGER,
DIMENSION(4),
INTENT(IN ) :: indexcurr
80 INTEGER,
DIMENSION(4),
INTENT(OUT) :: indexnew
82 LOGICAL,
INTENT(OUT) :: celllocate
84 REAL(RFREAL),
DIMENSION(3),
INTENT(IN ) :: posplag
90 CHARACTER(CHRLEN) :: rcsidentstring
92 INTEGER ::
i,icoff,ijcoff,ijkc,inoff,ijnoff,ijknr,ijknri,ijknrj,ijknrk, &
93 ilev,
ipcbeg,
ipcend,
ipnbeg,
ipnend,
j,
jpcbeg,
jpcend,
jpnbeg,
jpnend, &
95 INTEGER,
DIMENSION(4) :: indexsearch
97 REAL(RFREAL) :: distpos,distposmin
98 REAL(RFREAL),
DIMENSION(3) :: facecentroid
100 REAL(RFREAL),
POINTER,
DIMENSION(:,:,:) :: pfc
108 rcsidentstring =
'$RCSfile: PLAG_InCellTestRobust.F90,v $ $Revision: 1.3 $'
110 global => region%global
113 'PLAG_InCellTestRobust.F90' )
120 distposmin = huge(1.0_rfreal)
122 indexnew(1:4) = crazy_value_int
124 ilev = region%currLevel
126 pfc => region%levels(ilev)%plag%fc
148 ijknr = indijk(
i,
j ,
k ,inoff,ijnoff)
149 ijknri = indijk(
i+1,
j ,
k ,inoff,ijnoff)
150 ijknrj = indijk(
i,
j+1 ,
k ,inoff,ijnoff)
151 ijknrk = indijk(
i ,
j ,
k+1,inoff,ijnoff)
153 ijkc = indijk(
i,
j,
k,icoff,ijcoff)
160 facecentroid(1:3) = pfc(xcoord:zcoord,icoord,ijknr)
161 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
163 IF ( distpos < distposmin )
THEN
165 ijkc = indijk(
i-1,
j ,
k ,icoff,ijcoff)
166 indexsearch(1:4) = (/ijkc,
i-1,
j,
k/)
173 facecentroid(1:3) = pfc(xcoord:zcoord,icoord,ijknri)
174 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
176 IF ( distpos < distposmin )
THEN
178 ijkc = indijk(
i+1,
j ,
k ,icoff,ijcoff)
179 indexsearch(1:4) = (/ijkc,
i+1,
j,
k/)
186 facecentroid(1:3) = pfc(xcoord:zcoord,jcoord,ijknr)
187 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
189 IF ( distpos < distposmin )
THEN
191 ijkc = indijk(
i ,
j-1,
k ,icoff,ijcoff)
192 indexsearch(1:4) = (/ijkc,
i,
j-1,
k/)
199 facecentroid(1:3) = pfc(xcoord:zcoord,jcoord,ijknrj)
200 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
202 IF ( distpos < distposmin )
THEN
204 ijkc = indijk(
i ,
j+1,
k ,icoff,ijcoff)
205 indexsearch(1:4) = (/ijkc,
i,
j+1,
k/)
212 facecentroid(1:3) = pfc(xcoord:zcoord,kcoord,ijknr)
213 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
215 IF ( distpos < distposmin )
THEN
217 ijkc = indijk(
i ,
j ,
k-1,icoff,ijcoff)
218 indexsearch(1:4) = (/ijkc,
i,
j,
k-1/)
224 IF (
k+1 > kpcend )
THEN
225 facecentroid(1:3) = pfc(xcoord:zcoord,kcoord,ijknrk)
226 distpos =
sum( (facecentroid(1:3)-posplag(1:3))**2 )
228 IF ( distpos < distposmin )
THEN
230 ijkc = indijk(
i ,
j ,
k+1,icoff,ijcoff)
231 indexsearch(1:4) = (/ijkc,
i,
j,
k+1/)
237 IF ( nsearch /= 0 )
THEN
239 indexnew(1:4) = indexsearch(1:4)
Tfloat sum() const
Return the sum of all the pixel values in an image.
**********************************************************************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 jpnbeg
**********************************************************************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
**********************************************************************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 kpnbeg
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 jpnend
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
subroutine plag_incelltestrobust(region, posPlag, indexCurr, indexNew, cellLocate)
**********************************************************************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
**********************************************************************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 ipnbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine rflo_getdimensphysnodes(region, iLev, ipnbeg, ipnend, jpnbeg, jpnend, kpnbeg, kpnend)
**********************************************************************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 deregisterfunction(global)
**********************************************************************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 ipnend
subroutine rflo_getdimensphys(region, iLev, ipcbeg, ipcend, jpcbeg, jpcend, kpcbeg, kpcend)