firelab / behave

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

expose containsim variables #21

Closed Kcheung42 closed 11 months ago

Kcheung42 commented 11 months ago

These are some variables needed to construct the contain diagrams. I initially thought I could just save the instance of the containSim created during the doContainRun inside a protected member variable (sim_) in ContainAdapter but I was getting an error described below:

error: constructor for 'ContainAdapter' must explicitly initialize the member 'sim_' which does not have a default constructor.

For now this is my solution, to add setters for individual variables inside doContainRun but if you know of a better way without having to write all these setters that would be great.