Skip to content

Commit

Permalink
Fix define (#166)
Browse files Browse the repository at this point in the history
 ACCGPU is not defined because it is PRIVATE.
_OPENACC is the right define to use here because it is enabled whenever the code is compiled with OpenACC support.
  • Loading branch information
lukasm91 authored Oct 22, 2024
1 parent fcc022c commit a452121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/programs/ectrans-benchmark.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ subroutine get_command_line_arguments(nsmax, cgrid, iters, iters_warmup, nfld, n
character(len=128) :: carg ! Storage variable for command line arguments
integer :: iarg = 1 ! Argument index

#ifdef ACCGPU
#ifdef _OPENACC
!$acc init
#endif

Expand Down

0 comments on commit a452121

Please sign in to comment.