Skip to content

[BHP1-1622] Initialize total fuel load accumulators to zero - #68

Merged
rjsheperd merged 1 commit into
masterfrom
rj-BHP1-1622-fix-fuel-load
Jul 20, 2026
Merged

[BHP1-1622] Initialize total fuel load accumulators to zero#68
rjsheperd merged 1 commit into
masterfrom
rj-BHP1-1622-fix-fuel-load

Conversation

@rjsheperd

@rjsheperd rjsheperd commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Purpose

SurfaceFuelbedIntermediates::getTotalLiveFuelLoad/getTotalDeadFuelLoad sum onto an uninitialized local totalLoad, which reads as NaN in the Emscripten/WASM build. Initialize to zero.

Related Issues

BHP1-1622

Submission Checklist

  • Code compiles are passing (make compile)
  • Tests are passing (make test)

Testing

  1. Build the WASM bundle in behave-app/behave-lib (make install)
  2. Create a SIGSurface, set fuel model 163, and run doSurfaceRun
  3. getTotalDeadFuelLoad/getTotalLiveFuelLoad (ton/ac) return 2.15/1.1 instead of NaN

@rjsheperd
rjsheperd merged commit d462b1f into master Jul 20, 2026
1 check passed
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.

1 participant