-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from SCOREC/minimal-Clang-Error
Minimal clang error
- Loading branch information
Showing
3 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include "MeshField.hpp" | ||
#include "CabanaController.hpp" | ||
#include "KokkosController.hpp" | ||
#include "MeshField_Macros.hpp" | ||
#include "MeshField_Utility.hpp" | ||
|
||
#include <Cabana_Core.hpp> | ||
#include <Kokkos_Core.hpp> | ||
|
||
#include <vector> | ||
#include <iostream> | ||
//#include <initializer_list> | ||
#include <stdio.h> | ||
|
||
using ExecutionSpace = Kokkos::DefaultExecutionSpace; | ||
using MemorySpace = Kokkos::DefaultExecutionSpace::memory_space; | ||
|
||
|
||
int main(int argc, char *argv[]) { | ||
Kokkos::ScopeGuard scope_guard(argc, argv); | ||
printf("== START testNset ==\n"); | ||
|
||
const int N = 10; | ||
|
||
using kok1 = Controller::KokkosController<MemorySpace,ExecutionSpace, int**, int***,int****, int*****>; | ||
kok1 c1({N,N, | ||
N,N,N, | ||
N,N,N,N, | ||
N,N,N,N,N}); | ||
assert(c1.size(2,0) == N); | ||
assert(c1.size(2,1) == N); | ||
assert(c1.size(2,2) == N); | ||
assert(c1.size(2,3) == N); | ||
|
||
printf("== END testNset ==\n"); | ||
return 0; | ||
} | ||
|
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