copy_or_update_integer_pointer_r2 Subroutine

private subroutine copy_or_update_integer_pointer_r2(array, no_update)

Arguments

Type IntentOptional Attributes Name
integer, intent(inout), pointer :: array(:,:)
logical, intent(in), optional :: no_update

Called by

proc~~copy_or_update_integer_pointer_r2~~CalledByGraph proc~copy_or_update_integer_pointer_r2 copy_or_update_integer_pointer_r2 interface~copy_or_update_pointer copy_or_update_pointer interface~copy_or_update_pointer->proc~copy_or_update_integer_pointer_r2 proc~alloc_node alloc_node proc~alloc_node->interface~copy_or_update_pointer proc~alloc_node~2 alloc_node proc~alloc_node~2->interface~copy_or_update_pointer proc~alloc_node~3 alloc_node proc~alloc_node~3->interface~copy_or_update_pointer proc~alloc_node~4 alloc_node proc~alloc_node~4->interface~copy_or_update_pointer

Source Code

  subroutine copy_or_update_integer_pointer_r2(array, no_update)
    implicit none
    integer, pointer, intent(inout) :: array(:,:)
    logical, optional, intent(in)     :: no_update

    logical                           :: no_update_

    if (present(no_update)) then
       no_update_ = no_update
    else
       no_update_ = .false.
    end if

    if (.not. associated(array)) then
       print *, 'copy_or_update: null-pointer encountered (rank 2)'
       return
    end if


  end subroutine copy_or_update_integer_pointer_r2