mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-11 05:24:57 -05:00
Fix assertions in clib_test
This commit is contained in:
committed by
Ingmar Schoegl
parent
172b323531
commit
5d247d0031
@@ -15,7 +15,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
int ret;
|
||||
int thermo = thermo_newFromFile("gri30.yaml", "gri30");
|
||||
assert(thermo > 0);
|
||||
assert(thermo >= 0);
|
||||
size_t nsp = thermo_nSpecies(thermo);
|
||||
assert(nsp == 53);
|
||||
|
||||
@@ -35,7 +35,7 @@ int main(int argc, char** argv)
|
||||
assert(ret == 0);
|
||||
|
||||
int kin = kin_newFromFile("gri30.yaml", "gri30", thermo, -1, -1, -1, -1);
|
||||
assert(kin > 0);
|
||||
assert(kin >= 0);
|
||||
|
||||
size_t nr = kin_nReactions(kin);
|
||||
assert(nr == 325 );
|
||||
@@ -55,6 +55,7 @@ int main(int argc, char** argv)
|
||||
|
||||
printf("\n Species Mix diff coeff\n");
|
||||
int tran = trans_newDefault(thermo, 0);
|
||||
assert(tran >= 0);
|
||||
double dkm[53];
|
||||
trans_getMixDiffCoeffs(tran, 53, dkm);
|
||||
int k; // declare this here for C89 compatibility
|
||||
|
||||
Reference in New Issue
Block a user