Skip to content

Commit

Permalink
need sim object for burn override
Browse files Browse the repository at this point in the history
  • Loading branch information
achubaty committed Nov 14, 2018
1 parent 1e6efdf commit 7af9a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LandMine.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Burn <- function(sim) {
ROS[sim$rstFlammable[] == 1L & is.na(ROS)] <- 30L

if (!is.null(override.LandMine.Burn))
ROS <- override.LandMine.Burn(ROS)
ROS <- override.LandMine.Burn(sim, ROS)

ROSmap <- raster(sim$pixelGroupMap)
ROSmap[] <- ROS
Expand Down Expand Up @@ -456,7 +456,7 @@ override.LandMine.inputObjects <- function(sim) {
sim
}

override.LandMine.Burn <- function(ROS) {
override.LandMine.Burn <- function(sim, ROS) {
## test equal rates of spread
if (grepl("equalROS", P(sim)$runName)) {
ROS[young & vegType %in% c(mixed, spruce, pine, decid, softwood)] <- 1L
Expand Down

0 comments on commit 7af9a77

Please sign in to comment.