Parallel Computing
Links
Forest Fire
Code
Data
TO DO
-
Grid size WxH
-
Aspect ratio 4:3
-
Probability P
-
-
Initialize grid
-
Each slot may or may not contain a tree
-
Use probability P to decide tree or no tree
-
Any slot's decision independent of others
-
-
Simulation
-
Time zero set trees in the left-hand column on fire
-
At each time step fire spreads: up down left right
-
No wrapping at the boundaries and no diagonals
-
-
Result is the number of steps for the fire to burn out
-
It is possible there are still some trees leftover
-
Normalize... divide the number of steps by W
-
-
Random number seed
-
What happens as P varies?
-
What happens as W varies?
-
-
reportFIREPLOT
-
-
Laws
-
-
reportMPI
-
turninMPI
-
Back to Parallel
25 October 2016