Remove warnings when running unit tests

Issue #434 resolved
Prof Garth Wells created an issue

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)

  1. Martin Sandve Alnæs

    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.

  2. Prof Garth Wells reporter

    Should be an easy fix (by adding elements to Expressions, at least in most cases) - let's keep in for 1.5.

  3. Log in to comment