firelab / behave

A new implementation of the extended Rothermel model
Other
11 stars 8 forks source link

Look into making FuelModels objects use less memory in cases where multiple Behave objects are used simultaneously #2

Open wchatham opened 8 years ago

wchatham commented 8 years ago

Look into passing a pointer to a FuelModels object to Behave when an instance of Behave is constructed to save memory usage in applications using multiple instances of Behave objects.

wchatham commented 8 years ago

Made FuelModels object static to save memory usage when multiple behave instances are used simultaneously. Not sure if this is the optimal solution, as this may possibly introduce race conditions. Leaving this issue open for now.

wchatham commented 8 years ago

I've added some OpenMP critical sections to methods that alter data in FuelModels. Hopefully this will avoid race conditions associated with FuelModels objects assuming OpenMP is used to parallelize client applications.

wchatham commented 8 years ago

Moved FuelModels outside of Behave, now passing a reference to it at behaves construction. Removed critical sections of FuelModels for now.