geodynamics / Rayleigh

Rayleigh: Pseudo-spectral MHD
GNU General Public License v3.0
61 stars 48 forks source link

equation_coefficients class can now read old equation_coefficients files (again) #501

Closed illorenzo7 closed 5 months ago

illorenzo7 commented 5 months ago

This fixes another inadvertent error in the recent pull request #495 which broke the ability of the Python class equation_coefficients() to read the relevant equation_coefficients files with version 1. The problem was that the routine expected the length of the constants array to be 11, but only 10 constants were read in with version 1. This is fixed by simply increasing the length of the constants array and simultaneously entering "1.0" for the last entry.