Skip to content

Commit

Permalink
Temporary fix for issue JSBSim-Team#654.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Jun 19, 2022
1 parent 344ee85 commit 7a100e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/FGGasCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void FGGasCell::Calculate(double dt)
const double VolumeValved =
ValveOpen * ValveCoefficient * DeltaPressure * dt;
Contents =
max(0.0, Contents - Pressure * VolumeValved / (R * Temperature));
max(1E-8, Contents - Pressure * VolumeValved / (R * Temperature));
}

//-- Update ballonets. --
Expand Down

0 comments on commit 7a100e3

Please sign in to comment.