Skip to content

Fix divide by zero error.

Matt Wala requested to merge fix-divide-by-zero into master

E.g. here

-----------------------------------------------------------------------
RUNNING ./fmm-error.py
-----------------------------------------------------------------------
/var/lib/gitlab-runner/builds/0d8732fb/2/inducer/pytential/.env/lib/python3.6/site-packages/pytential/symbolic/compiler.py:544: UserWarning: mishandling CSE scope
  warn("mishandling CSE scope")
/var/lib/gitlab-runner/builds/0d8732fb/2/inducer/pytential/.env/lib/python3.6/site-packages/pytential/qbx/direct.py:101: LoopyWarning: 'lang_version' was not passed to make_kernel(). To avoid this warning, pass lang_version=(2018, 2) in this invocation. (Or say 'from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2' in the global scope of the calling frame.)
  fixed_parameters=dict(dim=self.dim))
fmm-error.py:81: RuntimeWarning: divide by zero encountered in log10
  im = fplot.show_scalar_in_matplotlib(np.log10(np.abs(err)))

Merge request reports

Loading