flux2d_Model Function

public pure function flux2d_Model(this, s, dsdx) result(flux)

Arguments

TypeIntentOptionalAttributesName
class(Model), intent(in) :: this
real(kind=prec), intent(in) :: s(1:this%nvar)
real(kind=prec), intent(in) :: dsdx(1:this%nvar,1:2)

Return Value real(kind=prec)(1:this%nvar,1:2)


Contents

Source Code


Source Code

  pure function flux2d_Model(this,s,dsdx) result(flux)
    class(Model),intent(in) :: this
    real(prec),intent(in) :: s(1:this%nvar)
    real(prec),intent(in) :: dsdx(1:this%nvar,1:2)
    real(prec) :: flux(1:this%nvar,1:2)

    flux = 0.0_prec
    if(.false.) then ! suppress unused-dummy-argument warnings for default implementation
      flux(:,1) = s; flux(1,:) = flux(1,:)+dsdx(1,:)
    endif

  endfunction flux2d_Model