From 47b0b017ac43509556c90e2aab40e090855cd003 Mon Sep 17 00:00:00 2001 From: Loren Date: Wed, 24 Apr 2024 18:23:29 -0700 Subject: [PATCH] length of constants array was the problem --- post_processing/reference_tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/post_processing/reference_tools.py b/post_processing/reference_tools.py index e1e90495..cb55f4fe 100644 --- a/post_processing/reference_tools.py +++ b/post_processing/reference_tools.py @@ -104,7 +104,9 @@ def read(self, filename='equation_coefficients'): if self.version == 1: self.nconst = 11 self.version = class_version - self.constants[10] = 1. + # need to increase constants array length by 1 (it's length 10) + # and the final entry should be 1.0 + self.constants = numpy.array(self.constants.tolist() + [1.]) print("Version of input file was 1.") print("Converting current equation_coefficients instance's version to %i." %class_version)