79 TYPE(t_region
),
TARGET :: region
88 INTEGER :: varinfomixt(cv_mixt_dens:cv_mixt_pres)
89 TYPE(t_region
),
POINTER :: pregion
91 INTEGER :: errorflag,ispec
92 INTEGER,
DIMENSION(:),
ALLOCATABLE :: varinfospec
100 global => region%global
103 'CellGradientsMP.F90')
112 IF ( pregion%mixtInput%spaceOrder > 1 )
THEN
122 SELECT CASE ( pregion%mixtInput%gasModel )
123 CASE ( gas_model_tcperf, &
125 gas_model_mixt_tcperf, &
126 gas_model_mixt_tperf, &
127 gas_model_mixt_pseudo )
130 varinfomixt(cv_mixt_dens) = v_mixt_dens
131 varinfomixt(cv_mixt_xvel) = v_mixt_xvel
132 varinfomixt(cv_mixt_yvel) = v_mixt_yvel
133 varinfomixt(cv_mixt_zvel) = v_mixt_zvel
134 varinfomixt(cv_mixt_pres) = v_mixt_pres
135 CASE ( gas_model_mixt_gasliq )
138 varinfomixt(cv_mixt_dens) = v_mixt_dens
139 varinfomixt(cv_mixt_xvel) = v_mixt_xvel
140 varinfomixt(cv_mixt_yvel) = v_mixt_yvel
141 varinfomixt(cv_mixt_zvel) = v_mixt_zvel
142 varinfomixt(cv_mixt_temp) = v_mixt_temp
144 CALL
errorstop(global,err_reached_default,__line__)
152 grc_mixt_dens,grc_mixt_pres, &
153 varinfomixt,pregion%mixt%cv, &
154 pregion%mixt%gradCell)
160 SELECT CASE ( pregion%mixtInput%reconst )
161 CASE ( reconst_none )
162 CASE ( reconst_weno_simple )
164 pregion%mixt%gradCell)
166 grc_mixt_dens,grc_mixt_pres, &
167 pregion%mixt%cv,pregion%mixt%cvInfo, &
168 pregion%mixt%gradCell)
169 CASE ( reconst_weno_xyz )
171 pregion%mixt%gradCell)
173 grc_mixt_dens,grc_mixt_pres, &
174 pregion%mixt%cv,pregion%mixt%cvInfo, &
175 pregion%mixt%gradCell)
176 CASE ( reconst_lim_barthjesp )
180 grc_mixt_dens,grc_mixt_pres, &
182 pregion%mixt%gradCell, &
185 pregion%mixt%gradCell,pregion%mixt%lim)
187 CASE ( reconst_lim_venkat )
191 grc_mixt_dens,grc_mixt_pres, &
192 pregion%mixt%cv,pregion%mixt%gradCell, &
195 pregion%mixt%gradCell,pregion%mixt%lim)
198 CALL
errorstop(global,err_reached_default,__line__)
212 IF ( global%specUsed .EQV. .true. )
THEN
219 pregion%spec%cvState)
221 ALLOCATE(varinfospec(pregion%specInput%nSpecies),stat=errorflag)
222 global%error = errorflag
223 IF ( global%error /= err_none )
THEN
224 CALL
errorstop(global,err_allocate,__line__,
'varInfoSpec')
227 DO ispec = 1,pregion%specInput%nSpecies
228 varinfospec(ispec) = v_spec_var1 + ispec - 1
236 1,pregion%specInput%nSpecies, &
237 varinfospec,pregion%spec%cv, &
238 pregion%spec%gradCell)
240 DEALLOCATE(varinfospec,stat=errorflag)
241 global%error = errorflag
242 IF ( global%error /= err_none )
THEN
243 CALL
errorstop(global,err_deallocate,__line__,
'varInfoSpec')
250 SELECT CASE ( pregion%mixtInput%reconst )
251 CASE ( reconst_none )
252 CASE ( reconst_weno_simple )
254 pregion%spec%gradCell)
256 pregion%specInput%nSpecies,1, &
257 pregion%specInput%nSpecies, &
258 pregion%spec%cv,pregion%spec%cvInfo, &
259 pregion%spec%gradCell)
260 CASE ( reconst_weno_xyz )
262 pregion%specInput%nSpecies, &
263 pregion%spec%gradCell)
265 pregion%specInput%nSpecies,1, &
266 pregion%specInput%nSpecies, &
267 pregion%spec%cv,pregion%spec%cvInfo, &
268 pregion%spec%gradCell)
269 CASE ( reconst_lim_barthjesp )
273 pregion%specInput%nSpecies,1, &
274 pregion%specInput%nSpecies, &
276 pregion%spec%gradCell, &
279 pregion%spec%gradCell,pregion%spec%lim)
281 CASE ( reconst_lim_venkat )
285 pregion%specInput%nSpecies,1, &
286 pregion%specInput%nSpecies, &
288 pregion%spec%gradCell, &
291 pregion%spec%gradCell,pregion%spec%lim)
294 CALL
errorstop(global,err_reached_default,__line__)
298 pregion%spec%cvState)
subroutine, public rflu_destroylimiter(pRegion, lim)
subroutine, public rflu_computelimitervenkat(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad, lim)
subroutine, public rflu_computelimiterbarthjesp(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad, lim)
subroutine, public rflu_createlimiter(pRegion, iBegGrad, iEndGrad, lim)
subroutine registerfunction(global, funName, fileName)
subroutine cellgradientsmp(region)
subroutine, public rflu_limitgradcells(pRegion, iBegGrad, iEndGrad, grad, lim)
subroutine, public rflu_limitgradcellssimple(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, varInfo, grad)
subroutine, public rflu_convertcvcons2prim(pRegion, cvStateFuture)
subroutine, public rflu_convertcvprim2cons(pRegion, cvStateFuture)
subroutine, public rflu_wenogradcellswrapper(pRegion, iBegGrad, iEndGrad, grad)
subroutine, public rflu_scalarconvertcvprim2cons(pRegion, cvScal, cvScalStateCurrent)
subroutine, public rflu_wenogradcellsxyzwrapper(pRegion, iBegGrad, iEndGrad, grad)
subroutine, public rflu_computegradcellswrapper(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, varInfo, var, grad)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine, public rflu_scalarconvertcvcons2prim(pRegion, cvScal, cvScalStateCurrent)