HydrologicEngineeringCenter / fda-model

A simple computational library to support water resources.
MIT License
2 stars 0 forks source link

Handling Unused Structure Attributes #364

Open rnugent3 opened 1 year ago

rnugent3 commented 1 year ago

I think this needs a dedicated unit test. The way that the stage damage compute is currently set up, it is possible that we are exposed to null reference exceptions when we don't have a given attribute in the structure inventory. However, the compute flags (bools e.g. "ComputeOtherDamage") might guard against that.