From 6ac047bc35e29d7fefb77e341717542888a0f40b Mon Sep 17 00:00:00 2001
From: Matteo Cicuttin <datafl4sh@toxicnet.eu>
Date: Thu, 20 Jul 2023 18:46:35 +0200
Subject: [PATCH] minor mods.

---
 CMakeLists.txt                 | 3 +++
 src/maxwell/maxwell_solver.cpp | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index acd4ec4..c3283ed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -341,6 +341,9 @@ endif()
 include_directories(contrib/sgr)
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
 
+set(BUILD_SANDBOX OFF CACHE BOOL "")
+set(BUILD_DOC OFF CACHE BOOL "")
+
 add_subdirectory(contrib/cereal)
 set(LINK_LIBS ${LINK_LIBS} cereal::cereal)
 option(OPT_USE_CEREAL_SERIALIZATION "Use cereal to serialize data" ON)
diff --git a/src/maxwell/maxwell_solver.cpp b/src/maxwell/maxwell_solver.cpp
index 78ca4a8..b584d26 100644
--- a/src/maxwell/maxwell_solver.cpp
+++ b/src/maxwell/maxwell_solver.cpp
@@ -646,7 +646,9 @@ int main(int argc, char **argv)
     }
 
     catch(...) {
-        std::cout << "EXCEPTION" << std::endl;
+        std::cout << __FILE__ << ":" << __LINE__ << ": Got an exception" << std::endl;
+        std::cout << "This code is here to debug runs on LUMI, if you are" << std::endl;
+        std::cout << "not running on LUMI there is a major problem." << std::endl;
         retval = 1;
     }
 
-- 
GitLab