Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set fire event priority to happen after regen #24

Open
achubaty opened this issue Mar 8, 2022 · 3 comments
Open

set fire event priority to happen after regen #24

achubaty opened this issue Mar 8, 2022 · 3 comments

Comments

@achubaty
Copy link
Collaborator

achubaty commented Mar 8, 2022

the current workraound, to start fires at start(sim) + 1, is hacky and non-obvious.

how is this handled in fireSense? if it's not implemented in either, implement and ensure they are consistent.

@achubaty
Copy link
Collaborator Author

achubaty commented Mar 8, 2022

from scfm burn event:

sim <- scheduleEvent(sim, time(sim) + P(sim)$returnInterval, "scfmSpread", "burn", eventPriority = 7.5)

Biomass_regen is using:

sim <- scheduleEvent(sim, time(sim) + P(sim)$fireTimestep, "Biomass_regeneration", "fireDisturbance", eventPriority = 3)

and note that:

eventPriority | A numeric specifying the priority of the event. Lower number means higher priority. As a best practice, it is recommended that decimal values are conceptual grouped by their integer values (e.g., 4.0, 4.25, 4.5 are conceptually similar).

so regen is being prioritized before fire in a given year

@SteveCumming
Copy link
Collaborator

SteveCumming commented Oct 11, 2022 via email

@achubaty
Copy link
Collaborator Author

  • for an annual module, one can use non-integer start times for event scheduling (e.g. 0.25 might be spring; 0.75 might be fall). to ensure this aligns with other modules, some checking is still needed to confirm the timing of these events.
  • event prority is can achieve similar outcome -- though it is intended to help resolve schudeling "ties" when 2 events are scheduled in the same timestep, and FIFO is not desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants