Assign one real to an Euler field.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(euler_1D_openmp), | intent(inout) | :: | lhs | Left hand side. |
||
real(kind=R_P), | intent(in) | :: | rhs | Right hand side. |
subroutine euler_assign_real(lhs, rhs)
!---------------------------------------------------------------------------------------------------------------------------------
!< Assign one real to an Euler field.
!---------------------------------------------------------------------------------------------------------------------------------
class(euler_1D_openmp), intent(INOUT) :: lhs !< Left hand side.
real(R_P), intent(IN) :: rhs !< Right hand side.
integer(I_P) :: i !< Counter.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(lhs%U)) then
!$OMP PARALLEL DO DEFAULT(NONE) PRIVATE(i) SHARED(lhs, rhs)
do i=1, lhs%Ni
lhs%U(:, i) = rhs
enddo
endif
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine euler_assign_real