Skip to content

Commit

Permalink
Update test_r2c_2d_float_f.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
ShatrovOA committed Oct 8, 2024
1 parent eff3b19 commit 373f544
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fortran/test_r2c_2d_float_f.F90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ program test_r2c_2d_float
complex(R4P), allocatable :: out(:)
real(R4P) :: local_error, global_error, rnd
integer(I4P), parameter :: nx = 17, ny = 19
integer(I4P) :: comm_size, comm_rank, i, j, ierr, executor_type
integer(I4P) :: comm_size, comm_rank, i, j, ierr, executor_type, outsize
type(dtfft_plan_r2c) :: plan
integer(I4P) :: in_counts(2), out_counts(2)
real(R8P) :: tf, tb, t_sum
Expand Down Expand Up @@ -85,7 +85,8 @@ program test_r2c_2d_float
call plan%execute(in, out, DTFFT_TRANSPOSE_OUT)
tf = tf + MPI_Wtime()

out(:) = out(:) / real(nx * ny, R4P)
outsize = product(out_counts)
out(:outsize) = out(:outsize) / real(nx * ny, R4P)
! Nullify recv buffer
in = -1._R4P

Expand Down

0 comments on commit 373f544

Please sign in to comment.