zero_array_complex_array_1 Subroutine

private subroutine zero_array_complex_array_1(array_in)

Zero out a 1D array

Arguments

Type IntentOptional Attributes Name
complex, intent(inout), dimension(:) :: array_in

Contents


Source Code

  subroutine zero_array_complex_array_1(array_in)
    implicit none
    complex, dimension(:), intent(in out) :: array_in
    integer :: counter, start, end

    start = lbound(array_in, dim = 1)
    end = ubound(array_in, dim = 1)

    !$OMP PARALLEL DO DEFAULT(none) &
    !$OMP SHARED(start, end, array_in) &
    !$OMP SCHEDULE(static)
    do counter = start, end
       array_in(counter) = 0.0
    end do
    !$OMP END PARALLEL DO
  end subroutine zero_array_complex_array_1