[ck2cti] Relax formatting requirement for Chebyshev coefficients.
Allow coefficient data to begin on the same line as the declaration of the order of the polynomial in each dimension. Fixes Issue 219.
This commit is contained in:
parent
d6a3ea4aa7
commit
2df0396879
2 changed files with 2 additions and 2 deletions
|
|
@ -1286,6 +1286,7 @@ class Parser(object):
|
|||
chebyshev.degreeT = int(float(tokens2[0].strip()))
|
||||
chebyshev.degreeP = int(float(tokens2[1].strip()))
|
||||
chebyshev.coeffs = np.zeros((chebyshev.degreeT,chebyshev.degreeP), np.float64)
|
||||
chebyshevCoeffs.extend([float(t.strip()) for t in tokens2[2:]])
|
||||
else:
|
||||
tokens2 = tokens[1].split()
|
||||
chebyshevCoeffs.extend([float(t.strip()) for t in tokens2])
|
||||
|
|
|
|||
|
|
@ -130,8 +130,7 @@ PLOG / 10 1.74e+07 1.98 4521 /
|
|||
! Bimolecular CHEB
|
||||
R5+H(+m)=P5A+P5B(+m) 1.0E0 0.0 0.0
|
||||
tcheb / 300.0 2000.0 / pcheb / 0.009869232667160128 98.69232667160128 /
|
||||
cheb / 4 4 /
|
||||
cheb / 8.2883000e+00 -1.1397000e+00 -1.2059000e-01 1.6034000e-02 /
|
||||
cheb / 4 4 8.2883000e+00 -1.1397000e+00 -1.2059000e-01 1.6034000e-02 /
|
||||
cheb / 1.9764000e+00 1.0037000e+00 7.2865000e-03 -3.0432000e-02 /
|
||||
cheb / 3.1770000e-01 2.6889000e-01 9.4806000e-02 -7.6385000e-03 /
|
||||
cheb / -3.1285000e-02 -3.9412000e-02 4.4375000e-02 1.4458000e-02 /
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue