Skip to content

Commit

Permalink
Fix host code
Browse files Browse the repository at this point in the history
  • Loading branch information
henryleberre committed Mar 8, 2024
1 parent ef48ac6 commit de599e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ if (MFC_SIMULATION)
SOURCES "${simulation_SRCs}"
MPI OpenACC FFTW)

if (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray" AND MFC_OpenACC)
add_custom_command(TARGET simulation POST_BUILD
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/cce_simulation_workgroup_256.sh"
"${CMAKE_CURRENT_BINARY_DIR}"
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/m_viscous.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module m_viscous
@:CRAY_DECLARE_GLOBAL(type(scalar_field), dimension(:), tau_Re_vf)
!$acc declare link(tau_Re_vf)
#else
real(kind(0d0)), allocatable, dimension(:) :: tau_Re_vf
type(scalar_field), allocatable, dimension(:) :: tau_Re_vf
!$acc declare create(tau_Re_vf)
#endif

Expand Down

0 comments on commit de599e2

Please sign in to comment.