Skip to content

scfmDriver fails if every cell is flammable #22

@ianmseddy

Description

@ianmseddy

Per Chris Mellon, this is an issue mainly for simulated landscapes, but the following line in driverFunctions.R will error if there are no non-flammable pixels.

    res <- optimise(escapeProbDelta,
                    interval = c(hatP0(hatPE, neighbours),
                                 hatP0(hatPE, floor(sum(w * 0:8)))),
                    tol = 1e-4,
                    w = w,
                    hatPE = hatPE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions