| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| 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) |
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