Commit 6b09ef87 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Take care of user-supplied function by checking whether mode_compute is numeric

Fixes #508

(cherry picked from commit 8ce11bc8)
parent 4da6f102
......@@ -53,7 +53,8 @@ end
M_.dname = dname;
if options_.mode_compute && options_.analytic_derivation,
if (isnumeric(options_.mode_compute) && options_.mode_compute && options_.analytic_derivation) ... %no user supplied function
|| (~isnumeric(options_.mode_compute) && options_.analytic_derivation) % user supplied function
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment