You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local functions can be evaluated over an entire connected complex or a single molecule, based on scope indicated by the tag. The -nocslf flag turns off calculation of local functions that are evaluated over a complex, which is a useful performance enhancement, but should not affect calculation or update of functions evaluated on a single molecule scope.
However, for some reactions, if -nocslf is set, then functions evaluated on a single molecule scope fail to update. Here is a simple model that reproduces the problem:
begin molecule types
A(p~0~1,m~0~1)
B(p~0~1)
end molecule types
begin species
A(p~0,m~0) 100
B(p~0) 100
end species
begin observables
Molecules Ap A(p~1)
Molecules Bp B(p~1)
end observables
begin functions
func1(x) = 1*Ap(x)
end functions
begin reaction rules
A(p~0) <-> A(p~1) 1,1
B(p~0) + A%x() -> B(p~1) + A%x() func1(x)
B(p~1) -> B(p~0) 1
end reaction rules
writeXML()
When running as:
nfsim -xml test.xml -sim 10 -oSteps 5 -v
We get as expected the DOR reaction firing as seen after the simulation:
May have found a fix (https://github.com/msneddon/nfsim/tree/lf-fix), but I want to test a few other things. Looks like the recent changes/fixes in the dev branch may have also fixed this issue.
Local functions can be evaluated over an entire connected complex or a single molecule, based on scope indicated by the tag. The -nocslf flag turns off calculation of local functions that are evaluated over a complex, which is a useful performance enhancement, but should not affect calculation or update of functions evaluated on a single molecule scope.
However, for some reactions, if -nocslf is set, then functions evaluated on a single molecule scope fail to update. Here is a simple model that reproduces the problem:
When running as:
We get as expected the DOR reaction firing as seen after the simulation:
However when we turn on the -nocslf
The rateFactorSum never updates, and the rule never fires
The text was updated successfully, but these errors were encountered: