From aeef6e8051ebf7c483a5a4196eeb4c75b0bfbb68 Mon Sep 17 00:00:00 2001 From: pgleeson Date: Tue, 13 Aug 2024 18:07:31 +0100 Subject: [PATCH] Just print waring message if error on derived variable check - might be the variables are in the wrong order jLems doesn't mind this, so letting it pass... --- .../java/org/lemsml/jlems/core/type/dynamics/Dynamics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java b/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java index 573baec..a982c2f 100644 --- a/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java +++ b/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java @@ -559,8 +559,8 @@ public void checkEquations(HashMap cdimHM) throws ContentEr try { dimHM.put(dv.getName(), dv.getDimensionality(dimHM)); } catch (ContentError ce) { - String errmsg = ("Checking " + dv + " in " + r_type + " " + ce.getMessage()); - throw new ContentError(errmsg); + String errmsg = ("Checking derived variable: " + dv + " in " + r_type + "\nError here: " + ce.getMessage()); + E.error(errmsg+"\n**************\n* Note: this may not be a serious error, in the case that the derived variables are all present, just have been specified out of order, e.g. b = f(a) is defined in the xML file before a is defined. "); } }