85 TYPE(t_region
),
TARGET :: region
93 TYPE(t_patch),
POINTER :: ppatch
94 INTEGER :: errorflag,ipatch,ispec
95 INTEGER,
DIMENSION(:),
ALLOCATABLE :: varinfospec
96 TYPE(t_region
),
POINTER :: pregion
103 global => region%global
106 'ViscousFluxesMP.F90' )
127 IF ( global%specUsed .EQV. .true. )
THEN
132 pregion%spec%cvState)
134 ALLOCATE(varinfospec(pregion%specInput%nSpecies),stat=errorflag)
135 global%error = errorflag
136 IF ( global%error /= err_none )
THEN
137 CALL
errorstop(global,err_allocate,__line__,
'varInfoSpec')
140 DO ispec = 1,pregion%specInput%nSpecies
141 varinfospec(ispec) = v_spec_var1 + ispec - 1
145 1,pregion%specInput%nSpecies, &
146 pregion%spec%cv,pregion%spec%gradFace)
148 IF ( pregion%grid%nFacesConstr > 0 )
THEN
150 1,pregion%specInput%nSpecies, &
151 varinfospec,pregion%spec%cv, &
152 pregion%spec%gradFace)
155 DO ipatch = 1,pregion%grid%nPatches
156 ppatch => pregion%patches(ipatch)
161 pregion%specInput%nSpecies,1, &
162 pregion%specInput%nSpecies, &
164 ppatch%spec%gradFace)
165 IF ( ppatch%cReconst /= constr_none )
THEN
167 pregion%specInput%nSpecies,1, &
168 pregion%specInput%nSpecies, &
169 varinfospec,pregion%spec%cv, &
170 ppatch%spec%gradFace)
176 DEALLOCATE(varinfospec,stat=errorflag)
177 global%error = errorflag
178 IF ( global%error /= err_none )
THEN
179 CALL
errorstop(global,err_deallocate,__line__,
'varInfoSpec')
183 pregion%spec%tv,pregion%spec%gradFace, &
186 pregion%spec%cvState)
subroutine, public rflu_computegradfaceswrapper(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
subroutine viscousfluxesmp(region)
LOGICAL function rflu_decideneedbgradface(pRegion, pPatch)
subroutine, public rflu_computebfgradconstrwrapper(pRegion, pPatch, iBegVar, iEndVar, iBegGrad, iEndGrad, varInfo, var, grad)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_computegradfacesconstr(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, varInfo, var, grad)
subroutine rflu_scalarviscousfluxes(pRegion, nVarScal, tvScal, gradScal, resScal)
subroutine, public rflu_computegradbfaceswrapper(pRegion, pPatch, iBegVar, iEndVar, iBegGrad, iEndGrad, var, grad)
subroutine, public rflu_scalarconvertcvprim2cons(pRegion, cvScal, cvScalStateCurrent)
subroutine viscousfluxes(region)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine, public rflu_scalarconvertcvcons2prim(pRegion, cvScal, cvScalStateCurrent)