Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine get_flux(u,xC,flux_dim,flux)real(dp),intent(in)::u(nw_phys)real(dp),intent(in)::xC(1:ndim)integer,intent(in)::flux_dimreal(dp),intent(out)::flux(nw_flux)real(dp)::magmag=u(iw_b1-1+flux_dim)! Density fluxflux(iw_rho)=u(iw_rho)*u(iw_mom(1))*mag! Momentum flux with pressure termflux(iw_mom(1))=(u(iw_rho)*u(iw_mom(1))**2+u(iw_e))*mag! Energy flux with hyperbolic conduction includedflux(iw_e)=u(iw_mom(1))*(u(iw_e)*inv_gamma_1+&0.5_dp*u(iw_rho)*u(iw_mom(1))**2+u(iw_e))*mag+&u(iw_q)*magflux(iw_q)=0.0_dpend subroutine get_flux