singletons and tpetra/kokkos
Created by: bathmatt
I'm trying to have a static tpetra map as part of a class, which anyone can grab so I can stop passing one around everywhere. However, this doesn't get destroyed until after the program ends and that throws a kokkos error.
End Result: TEST PASSED [Thread 0x7ffff34a7700 (LWP 8861) exited] terminate called after throwing an instance of 'std::runtime_error' what(): Kokkos::OpenMP parallel_for ERROR: not initialized Traceback functionality not available
Is there anyway to do this? Should there be?