Assign one Burgers field to another.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(burgers), | intent(inout) | :: | lhs | Left hand side. |
||
class(integrand), | intent(in) | :: | rhs | Right hand side. |
subroutine burgers_assign_burgers(lhs, rhs)
!---------------------------------------------------------------------------------------------------------------------------------
!< Assign one Burgers field to another.
!---------------------------------------------------------------------------------------------------------------------------------
class(burgers), intent(INOUT) :: lhs !< Left hand side.
class(integrand), intent(IN) :: rhs !< Right hand side.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
select type(rhs)
class is (burgers)
lhs%Ni = rhs%Ni
lhs%steps = rhs%steps
lhs%h = rhs%h
lhs%nu = rhs%nu
if (allocated(rhs%U)) lhs%U = rhs%U
if (allocated(rhs%previous)) lhs%previous = rhs%previous
endselect
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine burgers_assign_burgers