Skip to content

Commit

Permalink
Just print waring message if error on derived variable check - might …
Browse files Browse the repository at this point in the history
…be the variables are in the wrong order

jLems doesn't mind this, so letting it pass...
  • Loading branch information
pgleeson committed Aug 13, 2024
1 parent 8539ec0 commit aeef6e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ public void checkEquations(HashMap<String, Dimensional> 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. ");

}
}
Expand Down

0 comments on commit aeef6e8

Please sign in to comment.