diff --git a/modcc/module.cpp b/modcc/module.cpp index dee4f0abe26f177ac891c15f43f67c70bfd407fe..b13b5cb1f3f69aa9418104c1ea8f28ed28f420b5 100644 --- a/modcc/module.cpp +++ b/modcc/module.cpp @@ -98,15 +98,8 @@ public: current_vars_.insert(e->lhs()->is_identifier()->name()); linear_test_result L = linear_test(e->rhs(), {"v"}); - if (!L.is_linear) { - error({"current update expressions must be linear in v: "+e->rhs()->to_string(), - e->location()}); - return; - } - else { - if (L.coef.count("v") && !visited_current) { - conductivity_exps_.insert(L.coef.at("v")->clone()); - } + if (L.coef.count("v") && !visited_current) { + conductivity_exps_.insert(L.coef.at("v")->clone()); } } }