Set number of variables for which gradient is required based on the being used
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(schemetype), | intent(in) | :: | scheme | finite-volume Schemes |
subroutine get_n_grad(scheme)
!< Set number of variables for which
!< gradient is required based on the
!< being used
implicit none
type(schemetype) , intent(in) :: scheme
!< finite-volume Schemes
DebugCall("get_n_grad")
select case (trim(scheme%turbulence))
case('none')
!do nothing
continue
case ('sa', 'saBC')
n_grad = 5
case('sst', 'sst2003')
n_grad = 6
case('kkl')
n_grad = 6
case DEFAULT
Fatal_error
end select
!Transition modeling
select case(trim(scheme%transition))
case('lctm2015')
n_grad = n_grad + 1
case('none','bc')
n_grad = n_grad + 0
case DEFAULT
Fatal_error
end Select
end subroutine get_n_grad