flux Function

function flux(u, C11, C02)

Uses

  • proc~~flux~~UsesGraph proc~flux flux module~kinds kinds proc~flux->module~kinds

Calculate a flux from the derivative data and the equation coefficient.

Arguments

Type IntentOptional AttributesName
complex(kind=wp), intent(in), dimension(2):: u

The input state vector .

real(kind=wp), intent(in) :: C11

The coefficient of the second radial derivative term, .

real(kind=wp), intent(in) :: C02

The coefficient of the mixed second derivative term, .

Return Value complex(kind=wp), dimension(2)

On return the flux.


Called by

proc~~flux~~CalledByGraph proc~flux flux proc~get_elem_flux get_elem_flux proc~get_elem_flux->proc~flux proc~scal_schw_flux scal_schw_flux proc~scal_schw_flux->proc~get_elem_flux interface~scal_schw_flux scal_schw_flux interface~scal_schw_flux->proc~scal_schw_flux

Contents

Source Code


Source Code

  function flux ( u, C11, C02 )
  !! Calculate a flux from the derivative data and the equation coefficient.

    use kinds

    implicit none

    complex(wp), dimension(2), intent(in) :: u
    !! The input state vector \((\Upsilon,\Pi)\).
    real(wp), intent(in) :: C11
    !! The coefficient of the second radial derivative term, \(c_{rr}\).
    real(wp), intent(in) :: C02
    !! The coefficient of the mixed second derivative term, \(c_{tr}\).
    complex(wp), dimension(2) :: flux
    !! On return the flux.
    
    flux(1) = -C11 * u(1) - C02 * u(2)
    flux(2) = -u(1)

    return

  end function flux