You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spitting out the generated code we can see that in the case where the constant value is an np.float64 sympy eagerly turns this into a Float losing the precision information. The generated code is explicitly using a 5.0e-1F single precision float rather that (presumably) the desired double precision float.
See https://github.com/devitocodes/devito/blob/v4.8.11/tests/test_symbolics.py#L257-L260 for example of use.
Spitting out the generated code we can see that in the case where the constant value is an
np.float64
sympy eagerly turns this into aFloat
losing the precision information. The generated code is explicitly using a5.0e-1F
single precision float rather that (presumably) the desired double precision float.Produces:
Could probably be addressed alongside #2493 in a printer cleanup.
The text was updated successfully, but these errors were encountered: