Skip to content

Commit

Permalink
Fixed OOB issue in out1d when averaging along x or y. (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa authored Aug 29, 2023
1 parent 6446710 commit ff9920f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/output.f90
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ subroutine out1d(fname,ng,lo,hi,idir,l,dl,z_g,dz,p)
integer , intent(in), dimension(3) :: ng,lo,hi
integer , intent(in) :: idir
real(rp), intent(in), dimension(3) :: l,dl
real(rp), intent(in), dimension(0:) :: z_g,dz
real(rp), intent(in), dimension(0: ) :: z_g
real(rp), intent(in), dimension(0:lo(3)-1) :: dz
real(rp), intent(in), dimension(lo(1)-1:,lo(2)-1:,lo(3)-1:) :: p
real(rp), allocatable, dimension(:) :: p1d
integer :: i,j,k
Expand Down

0 comments on commit ff9920f

Please sign in to comment.