60 TYPE(t_region
),
TARGET :: region
67 TYPE(t_radi),
POINTER :: radi
71 INTEGER :: ibc,iec, ibn,ien, icoff,ijcoff, inoff,ijnoff, errfl
72 INTEGER :: radimodel, media, fluxlim, solmethod
73 INTEGER :: nordin, npol, nazi, nang, ncv, ndv, ngrad
77 global => region%global
79 'RADI_AllocateMemory.F90' )
85 radimodel = region%radiInput%radiModel
86 media = region%radiInput%media
87 fluxlim = region%radiInput%fluxLim
88 solmethod = region%radiInput%solMethod
89 nordin = region%radiInput%nOrdin
90 npol = region%radiInput%nPol
91 nazi = region%radiInput%nAzi
92 nang = region%radiInput%nAng
94 ncv = region%radiInput%nCv
95 ndv = region%radiInput%nDv
96 ngrad = region%radiInput%nGrad
100 DO ilev=1,region%nGridLevels
102 radi => region%levels(ilev)%radi
121 radimodel = radiinput%radiModel
122 media = radiinput%media
123 fluxlim = radiinput%fluxLim
124 solmethod = radiinput%solMethod
125 nordin = radiinput%nOrdin
126 npol = radiinput%nPol
127 nazi = radiinput%nAzi
128 nang = radiinput%nAng
132 ngrad = radiinput%nGrad
134 ALLOCATE( radiinput%angles(nang,radi_angle_ncomp),stat=errfl )
146 ALLOCATE( radi%qri(ibn:ien) ,stat=errfl );
IF (errfl>0) goto 88
147 ALLOCATE( radi%qrj(ibn:ien) ,stat=errfl );
IF (errfl>0) goto 88
148 ALLOCATE( radi%qrk(ibn:ien) ,stat=errfl );
IF (errfl>0) goto 88
149 ALLOCATE( radi%goFact(ibc:iec) ,stat=errfl );
IF (errfl>0) goto 88
151 ALLOCATE( radi%wvInt(xcoord:zcoord,ibc:iec),stat=errfl )
153 ALLOCATE( radi%radInt(nang ,ibc:iec),stat=errfl )
155 ALLOCATE( radi%radCoef(ibc:iec,radi_coeff_ncomp),stat=errfl )
159 ALLOCATE( radi%cv( ncv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
160 ALLOCATE( radi%cvOld( ncv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
161 ALLOCATE( radi%rhs( ncv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
162 ALLOCATE( radi%rhsSum(ncv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
163 ALLOCATE( radi%diss( ncv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
165 nullify( radi%cv,radi%cvOld,radi%rhs,radi%rhsSum,radi%diss )
170 ALLOCATE( radi%srad(icoord:kcoord,ibc:iec),stat=errfl )
172 IF ((global%flowType==flow_steady) .AND. &
173 (region%radiInput%smoocf > 0._rfreal))
THEN
174 ALLOCATE( radi%epsIrs(icoord:kcoord,ibc:iec), stat=errfl )
177 nullify( radi%epsIrs )
180 nullify( radi%srad,radi%epsIrs )
185 ALLOCATE( radi%dv(ndv,ibc:iec),stat=errfl );
IF (errfl>0) goto 88
191 ALLOCATE( radi%gradi(ngrad,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
192 ALLOCATE( radi%gradj(ngrad,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
193 ALLOCATE( radi%gradk(ngrad,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
195 nullify( radi%gradi,radi%gradj,radi%gradk )
198 IF (radimodel == radi_model_ross .OR. &
199 radimodel == radi_model_fldsrc .OR. &
200 radimodel == radi_model_fldtran)
THEN
201 ALLOCATE( radi%fluxLim(ibc:iec),stat=errfl );
IF (errfl>0) goto 88
203 nullify( radi%fluxLim )
206 IF (radimodel == radi_model_fldtran)
THEN
207 ALLOCATE( radi%ptens(tensor_symm_nelm,ibc:iec),stat=errfl )
209 ALLOCATE( radi%eddFact(ibc:iec),stat=errfl )
212 nullify( radi%cv,radi%ptens,radi%eddFact )
215 IF (radimodel == radi_model_rtegray .OR. &
216 radimodel == radi_model_rteband)
THEN
217 ALLOCATE( radi%dWghti(nang,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
218 ALLOCATE( radi%dWghtj(nang,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
219 ALLOCATE( radi%dWghtk(nang,ibn:ien),stat=errfl );
IF (errfl>0) goto 88
221 nullify( radi%dWghti, radi%dWghtj, radi%dWghtk )
235 CALL
errorstop( global,err_allocate,__line__ )
**********************************************************************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 idcend
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 jdnbeg
**********************************************************************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 idnend
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 jdnend
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************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 idnbeg
**********************************************************************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 kdcbeg
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 idcbeg
**********************************************************************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 jdcend
**********************************************************************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 jdcbeg
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine radi_allocatememory(region)
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 kdnbeg