atrtp

Thermodynamic properties of a medium in combustion
git clone git://git.meso-star.fr/atrtp.git
Log | Files | Refs | README | LICENSE

commit 2aa5c66b2c43d15f69da4f3279118c1839ee4818
parent e8e96e9dac3f00e5bcf9f46abfa6c3da647a54ac
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 12 Jan 2021 15:19:05 +0100

Fix the load test

Diffstat:
Msrc/test_atrtp_load.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test_atrtp_load.c b/src/test_atrtp_load.c @@ -26,14 +26,14 @@ check_atrtp_desc (const struct atrtp_desc* desc, const uint64_t nnodes) { - size_t icell; + size_t inode; CHK(desc); CHK(nnodes); CHK(desc->nnodes == nnodes); - FOR_EACH(icell, 0, nnodes) { + FOR_EACH(inode, 0, nnodes) { size_t iprop; - const double* props = atrtp_desc_get_node_properties(desc, icell); + const double* props = atrtp_desc_get_node_properties(desc, inode); CHK(props); FOR_EACH(iprop, 0, ATRTP_COUNT__) { CHK(props[iprop] == (double)(10+iprop)); @@ -169,8 +169,8 @@ test_load_files(struct atrtp* atrtp, int argc, char** argv) CHK(props[ATRTP_XCO] >= 0); CHK(props[ATRTP_SOOT_VOLFRAC] >= 0); CHK(props[ATRTP_SOOT_VOLFRAC] <= 1); - CHK(props[ATRTP_SOOT_PRIMARY_PARTICLES_COUNT] > 0); - CHK(props[ATRTP_SOOT_PRIMARY_PARTICLES_DIAMETER] > 0); + CHK(props[ATRTP_SOOT_PRIMARY_PARTICLES_COUNT] >= 0); + CHK(props[ATRTP_SOOT_PRIMARY_PARTICLES_DIAMETER] >= 0); } } }