star-gas

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

commit 0ff6567ead376f76cc4d6bd7ec20f9aaaa098a0b
parent eccbd053f451601038bb3397719afe187a58a186
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  4 Mar 2026 10:20:53 +0100

Manage errors on input arguments of sgas_get_props

So far, it was an assertion that verifies that their value was not NULL.

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

diff --git a/src/sgas.c b/src/sgas.c @@ -658,7 +658,7 @@ sgas_get_props double bcoords[4] = {0,0,0,0}; res_T res = RES_OK; - ASSERT(gas && pos && gas_props); /* Pre-conditions */ + if(!gas || !pos || !gas_props) { res = RES_BAD_ARG; goto error; } res = suvm_volume_at(gas->mesh, pos, &prim, bcoords); if(res != RES_OK) goto error;