20 #ifndef TILEDARRAY_EXTERNAL_MADNESS_H__INCLUDED
21 #define TILEDARRAY_EXTERNAL_MADNESS_H__INCLUDED
24 #ifndef WORLD_INSTANTIATE_STATIC_TEMPLATES
25 #define WORLD_INSTANTIATE_STATIC_TEMPLATES
26 #endif // WORLD_INSTANTIATE_STATIC_TEMPLATES
30 #include <TiledArray/config.h>
32 TILEDARRAY_PRAGMA_GCC(diagnostic push)
33 TILEDARRAY_PRAGMA_GCC(system_header)
35 #include <madness/world/MADworld.h>
36 #include <madness/world/worldmem.h>
38 TILEDARRAY_PRAGMA_GCC(diagnostic pop)
40 #include <TiledArray/error.h>
55 "TiledArray::detail::default_world::get() called "
56 "before madness::initialize()");
57 world() = &madness::World::get_default();
61 static void set(World* w) { world() = w; }
63 static World*
query() {
return world(); }
66 static World*& world() {
67 static World* world_ =
nullptr;
121 return std::unique_ptr<World, decltype(world_resetter)>(current_world,
127 #endif // TILEDARRAY_EXTERNAL_MADNESS_H__INCLUDED