| 58 | } |
| 59 | |
| 60 | void Kernel::Initialize() { |
| 61 | // Print kernel info |
| 62 | this->PrintInfo(); |
| 63 | |
| 64 | // Import the Kratos core application (if not already imported) |
| 65 | if (!IsImported("KratosMultiphysics")) { |
| 66 | // Boost is always available |
| 67 | if (!Registry::HasItem("libraries.boost")) { |
| 68 | Registry::AddItem<std::string>("libraries.boost"); |
| 69 | |
| 70 | // When using the nonfree version of TRIANGLE, add it to the list of libraries |
| 71 | #if USE_TRIANGLE_NONFREE_TPL |
| 72 | Registry::AddItem<std::string>("libraries.triangle"); |
| 73 | #else |
| 74 | // Open-source version alternative to TRIANGLE |
| 75 | Registry::AddItem<std::string>("libraries.delaunator-cpp"); |
| 76 | #endif |
| 77 | |
| 78 | // When using the nonfree version of TETGEN, add it to the list of libraries |
| 79 | #if USE_TETGEN_NONFREE_TPL |
| 80 | Registry::AddItem<std::string>("libraries.tetgen"); |
| 81 | #endif |
| 82 | |
| 83 | // If tests are built Google Test is available |
| 84 | #ifdef KRATOS_BUILD_TESTING |
| 85 | Registry::AddItem<std::string>("libraries.googletest"); |
| 86 | #endif |
| 87 | |
| 88 | // If benchmarks are built, Google Benchmark is available |
| 89 | #ifdef KRATOS_BUILD_BENCHMARKING |
| 90 | Registry::AddItem<std::string>("libraries.benchmark"); |
| 91 | #endif |
| 92 | |
| 93 | // Add the libraries that are always available |
| 94 | Registry::AddItem<std::string>("libraries.amgcl"); |
| 95 | Registry::AddItem<std::string>("libraries.clipper"); |
| 96 | Registry::AddItem<std::string>("libraries.concurrentqueue"); |
| 97 | Registry::AddItem<std::string>("libraries.ghc"); |
| 98 | Registry::AddItem<std::string>("libraries.gidpost"); |
| 99 | Registry::AddItem<std::string>("libraries.intrusive_ptr"); |
| 100 | Registry::AddItem<std::string>("libraries.json"); |
| 101 | Registry::AddItem<std::string>("libraries.pybind11"); |
| 102 | Registry::AddItem<std::string>("libraries.span"); |
| 103 | Registry::AddItem<std::string>("libraries.tinyexpr"); |
| 104 | Registry::AddItem<std::string>("libraries.vexcl"); |
| 105 | Registry::AddItem<std::string>("libraries.zlib"); |
| 106 | } |
| 107 | |
| 108 | // Import core application |
| 109 | this->ImportApplication(mpKratosCoreApplication); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | std::unordered_set<std::string>& Kernel::GetApplicationsList() { |
| 114 | static std::unordered_set<std::string> application_list; |
nothing calls this directly
no test coverage detected