From 2ab1fb98de64aba6bcaf4315d481d3930b56c057 Mon Sep 17 00:00:00 2001
From: Pauli Virtanen <pauli.t.virtanen@jyu.fi>
Date: Mon, 29 Aug 2022 12:36:33 +0300
Subject: [PATCH] Define NDEBUG for CppAD to avoid aborts on rounding error

---
 src/common.hpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common.hpp b/src/common.hpp
index 6ce4298..a44fc94 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -12,8 +12,10 @@
 
 #include <Eigen/Core>
 
+#define NDEBUG
 #include <cppad/cppad.hpp>
 #include <cppad/example/cppad_eigen.hpp>
+#undef NDEBUG
 
 #include <adept.h>
 
-- 
GitLab