From 3268c3b1874d8a20ed8943a35db50bc056ce7e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= Date: Tue, 17 Dec 2024 10:46:17 +0100 Subject: [PATCH] Fix typo --- kratos/sources/kernel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kratos/sources/kernel.cpp b/kratos/sources/kernel.cpp index 7aa8d6f105e..f61a8a01c6c 100644 --- a/kratos/sources/kernel.cpp +++ b/kratos/sources/kernel.cpp @@ -122,11 +122,12 @@ bool Kernel::IsImported(const std::string& rApplicationName) const { } bool Kernel::IsLibraryAvailable(const std::string& rLibraryName) const { - const bool is_available = GetLibrayList().find(rLibraryName) != GetLibrayList().end(); + const auto library_list = GetLibraryList(); + const bool is_available = library_list.find(rLibraryName) != library_list.end(); if (!is_available) { std::stringstream available_list_str; available_list_str << "Library " << rLibraryName << " is not available. The following libraries are available: "; - for (const std::string& library : GetLibrayList()) { + for (const std::string& library : library_list) { available_list_str << library << "\n"; } KRATOS_WARNING("Kernel") << available_list_str.str() << std::endl;