Remove warnings when running unit tests
Issue #434
resolved
Running the unit tests generates many of the below warnings:
*** Warning: Evaluating an Expression without knowing the right geometric dimension, assuming 3 is correct.
These swamp other output. Code should be updated to eliminate warnings.
Comments (9)
-
-
Who is going to do this? Or will it wait for 1.6?
-
reporter Should be an easy fix (by adding elements to Expressions, at least in most cases) - let's keep in for 1.5.
-
reporter - changed milestone to 1.6
-
@garth-wells @martinal - do either of you want to fix this for 1.6?
-
Don't have time. It can wait.
-
- changed milestone to 1.7
-
- removed milestone
Removing milestone: 1.7 (automated comment)
-
- changed status to resolved
- Log in to comment
I've been curious about how long it would take for anyone to notice... This will happen when calling eval from python on an Expression that doesn't have an element associated, meaning the geometric dimension is undefined. I added the warning because I think guessing on a dimension is a nasty thing to do that can hide user code bugs, and wanted it clearly shown when it happened. That said, I don't care much if we disable the warning now, or maybe make it show only the first time it happens.