From bd85e13c654c827001eda672b136a5026c08653c Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Thu, 31 Oct 2024 08:36:14 +0100 Subject: [PATCH] For CoreNEURON, DERIVATIVE doesn't need sympy. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b63b7b0c7..d38c6bef4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -517,7 +517,7 @@ int run_nmodl(int argc, const char* argv[]) { enable_sympy(solver_exists(*ast, "derivimplicit"), "'SOLVE ... METHOD derivimplicit'"); enable_sympy(node_exists(*ast, ast::AstNodeType::LINEAR_BLOCK), "'LINEAR' block"); - enable_sympy(node_exists(*ast, ast::AstNodeType::DERIVATIVE_BLOCK), + enable_sympy(neuron_code && node_exists(*ast, ast::AstNodeType::DERIVATIVE_BLOCK), "'DERIVATIVE' block"); enable_sympy(node_exists(*ast, ast::AstNodeType::NON_LINEAR_BLOCK), "'NONLINEAR' block");