Return and instance of conservative_compressible.
This procedure is used for overloading conservative_compressible name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=R8P), | intent(in), | optional | :: | density | Density, |
|
| type(vector), | intent(in), | optional | :: | momentum | Momentum, |
|
| real(kind=R8P), | intent(in), | optional | :: | energy | Energy, |
Instance of conservative_compressible.
elemental function conservative_compressible_instance(density, momentum, energy) result(instance)
!< Return and instance of [[conservative_compressible]].
!<
!< @note This procedure is used for overloading [[conservative_compressible]] name.
real(R8P), intent(in), optional :: density !< Density, `rho`.
type(vector), intent(in), optional :: momentum !< Momentum, `rho * v`, `rho` being the density and `v` the velocity vector.
real(R8P), intent(in), optional :: energy !< Energy, `rho * E`, `rho` being the density and `E` the specific energy.
type(conservative_compressible) :: instance !< Instance of [[conservative_compressible]].
if (present(density)) instance%density = density
if (present(momentum)) instance%momentum = momentum
if (present(energy)) instance%energy = energy
endfunction conservative_compressible_instance