Commit 8ce11bc8 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

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

Fixes #508
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
analytic_derivation0=options_.analytic_derivation;
options_.analytic_derivation=1;
end
......
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