Skip to content

Commit 067e5a0

Browse files
authored
Fix FSA detection for models without states (#2749)
1 parent 458e921 commit 067e5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/amici/solver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ class Solver {
812812
bool computingFSA() const {
813813
return getSensitivityOrder() >= SensitivityOrder::first
814814
&& getSensitivityMethod() == SensitivityMethod::forward
815-
&& nplist() > 0;
815+
&& nplist() > 0 && nx() > 0;
816816
}
817817

818818
/**

0 commit comments

Comments
 (0)