star-gas

Load and structure gas data
git clone git://git.meso-star.fr/star-gas.git
Log | Files | Refs | README | LICENSE

commit 46fb7a7a6bb210431e7929b4939514dfdaf95db4
parent 0ff6567ead376f76cc4d6bd7ec20f9aaaa098a0b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  4 Mar 2026 10:23:37 +0100

Correct the unit of pressure returned

The pressure was converted to atmospheric unit where the API mentions
Pascals.

The choice of turning a pressure in Pascal is dictated by the atrtp
format in which the pressure is stored in this unit. Convert pressure in
another unit will add more confusion on the units actually used.

The Pascal unit is therefore maintained throughout and it is left to the
caller to convert the pressure into the desired unit.

Diffstat:
Msrc/sgas.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/sgas.c b/src/sgas.c @@ -677,7 +677,6 @@ sgas_get_props raw_props = atrtp_desc_get_node_properties(&therm_props->desc, prim.iprim); gas_props->pressure = raw_props[ATRTP_PRESSURE]; - gas_props->pressure /= 101325; /* Pressure convertion: pascal to atmosphere */ gas_props->temperature = raw_props[ATRTP_TEMPERATURE]; gas_props->xH2O = raw_props[ATRTP_XH20]; gas_props->xCO2 = raw_props[ATRTP_XCO2];