Skip to content

Fixed SAVR unit conversion in BehaveUnits.cpp - #74

Open
j-tenny wants to merge 1 commit into
firelab:masterfrom
j-tenny:fix_savr_units_conversion_1
Open

Fixed SAVR unit conversion in BehaveUnits.cpp#74
j-tenny wants to merge 1 commit into
firelab:masterfrom
j-tenny:fix_savr_units_conversion_1

Conversation

@j-tenny

@j-tenny j-tenny commented Sep 10, 2026

Copy link
Copy Markdown

Unit conversions for surface area to volume ratio were backwards. This was a problem for creating custom fuel models with metric inputs. When converting units from "per centimeter" to "per foot", the value should get bigger. Moved constants from 'toBaseUnits' to 'fromBaseUnits' and vice-versa.

This is the same as the first commit in PR #72, but I was asked to separate the commits into two PRs.

Unit conversions for surface area to volume ratio were backwards. Moved constants from  'toBaseUnits' to 'fromBaseUnits' and vice-versa.
@shanna-h

Copy link
Copy Markdown

Hi @nwagenbrenner - would you or someone from the Fire Lab mind taking a look at this PR before we merge it? We'd appreciate any input you have from the fire science side. Thanks!

@nwagenbrenner
nwagenbrenner self-requested a review September 10, 2026 22:01
@nwagenbrenner

Copy link
Copy Markdown
Member

This is a valid fix and looks good. Thanks!

@shanna-h

Copy link
Copy Markdown

Great, thanks!
@rjsheperd - Could you please merge this PR when you have a moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants