From 7a100e3efe991acc30d861fa0c489a114b4efcd4 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Sat, 18 Jun 2022 11:43:29 +0200 Subject: [PATCH] Temporary fix for issue #654. --- src/models/FGGasCell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/FGGasCell.cpp b/src/models/FGGasCell.cpp index 9e201415e0..ad16e1d038 100644 --- a/src/models/FGGasCell.cpp +++ b/src/models/FGGasCell.cpp @@ -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. --