Set heat flux variable (hyperbolic TC treatment)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in), | optional | :: | need_bc |
function var_set_q(need_bc) result(iw) logical, intent(in), optional :: need_bc integer :: iw logical :: add_bc add_bc = .true. if (present(need_bc)) add_bc = need_bc nwflux = nwflux + 1 nw = nw + 1 if (add_bc) nwfluxbc = nwfluxbc + 1 iw_q = nwflux iw = nwflux cons_wnames(nwflux) = 'q' prim_wnames(nwflux) = 'q' end function var_set_q