1 #include <Kokkos_Core.hpp>
6 inline void nan_check_view(
const Kokkos::View<double****,HostType>& view, std::string name){
8 printf(
"\nChecking for NaNs in %s",name.c_str());
9 for(
int i=0;i<view.extent(0);i++){
10 for(
int j=0;j<view.extent(1);j++){
11 for(
int k=0;k<view.extent(2);k++){
12 for(
int l=0;l<view.extent(3);l++){
13 if(isnan(view(i,j,k,l))){
14 printf(
"\nNaN found in %s at (%d,%d,%d,%d)",view.label().c_str(),i,j,k,l);
void nan_check_view(const Kokkos::View< double ****, HostType > &view, std::string name)
Definition: nan_check.hpp:6