This function provides copy assigment for tem_stencilElement_type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_stencilElement_type), | intent(out) | :: | left |
tem_stencilElement to copy to |
||
type(tem_stencilElement_type), | intent(in) | :: | right |
tem_stencilElement to copy from |
subroutine copy_stencilElement(left, right) ! -------------------------------------------------------------------- ! !> tem_stencilElement to copy to type(tem_stencilElement_type), intent(out) :: left !> tem_stencilElement to copy from type(tem_stencilElement_type), intent(in) :: right ! -------------------------------------------------------------------- ! ! -------------------------------------------------------------------- ! left%QQN = right%QQN if ( allocated(right%tIDpos) ) then allocate(left%tIDpos(size(right%tIDpos))) left%tIDpos = right%tIDpos end if left%headerPos = right%headerPos if ( allocated(right%totalPos) ) then allocate(left%totalPos(size(right%totalPos))) left%totalPos = right%totalPos end if end subroutine copy_stencilElement