Skip to content

Commit

Permalink
Fix bug in input array size.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa committed Jan 30, 2025
1 parent 012febf commit b419538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/solver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ subroutine solver_gaussel_z(n,a,b,c,bcz,c_or_f,p)
end if
else
if(bcz(0)//bcz(1) == 'PP') then
call gaussel_periodic(n_z(1),n_z(2),n_z(3)-q,1,a,b,c,p)
call gaussel_periodic(n(1),n(2),n(3)-q,1,a,b,c,p)
else
call gaussel( n_z(1),n_z(2),n_z(3)-q,1,a,b,c,p)
call gaussel( n(1),n(2),n(3)-q,1,a,b,c,p)
end if
end if
!
Expand Down
4 changes: 2 additions & 2 deletions src/solver_gpu.f90
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@ subroutine solver_gaussel_z_gpu(n,a,b,c,bcz,c_or_f,p)
q = 0
if(c_or_f(3) == 'f'.and.bcz(1) == 'D') q = 1
if(bcz(0)//bcz(1) == 'PP') then
call gaussel_periodic_gpu(n_z_0(1),n_z_0(2),n_z_0(3)-q,1,a,b,c,p ,work,pz_aux_1,pz_aux_2)
call gaussel_periodic_gpu(n(1),n(2),n(3)-q,1,a,b,c,p,work,pz_aux_1,pz_aux_2)
else
call gaussel_gpu( n_z_0(1),n_z_0(2),n_z_0(3)-q,1,a,b,c,p ,work)
call gaussel_gpu( n(1),n(2),n(3)-q,1,a,b,c,p,work)
end if
end if
!
Expand Down

0 comments on commit b419538

Please sign in to comment.