Merge branch 'main' into feature/pythonInterface/eos

This commit is contained in:
2025-06-12 17:11:03 -04:00
3 changed files with 3 additions and 3 deletions

View File

@@ -358,8 +358,8 @@ namespace serif::eos::helmholtz {
// hash the table location in t, rho:
jat = (log10(T) - tlo)*tstpi;
jat = max(0, min(jat, table.jmax-1)); // bounds
iat = max(0, min(iat, table.imax-1)); // bounds
iat = (log10(din)-dlo)*dstpi;
iat = max(0, min(iat, table.imax-1)); // bounds
//using the indices, access the table:
fi[0] = table.f[iat][jat];