This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# let say we require to use at least p4est version 2.8.5 | |
set(P4EST_MINIMAL_VERSION 2.8.5) | |
# first try to detect P4ESTConfig.cmake somewhere in the CMAKE_PREFIX_PATH | |
# if found, we're ready to go using target P4EST::P4EST | |
find_package(P4EST ${P4EST_MINIMAL_VERSION} CONFIG QUIET) | |
if(P4EST_FOUND) | |
message(STATUS "P4EST was found with find_package, with version ${P4EST_VERSION}") | |
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 2D */ | |
KOKKOS_INLINE_FUNCTION | |
void index2coord(int index, int &i, int &j, int Nx, int Ny) | |
{ | |
UNUSED(Nx); | |
UNUSED(Ny); | |
#ifdef KOKKOS_ENABLE_CUDA | |
j = index / Nx; |