badlands-model / badlands

Basin and Landscape Dynamics model

Home Page:https://badlands.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

numba @jit broken with recent

ihowson opened this issue · comments

In partitionTIN.py, we're getting a LoweringError on new macOS/Anaconda installations - at the time of writing, Anaconda 4.0.0 and macOS Sierra.

This is caused by a JIT compilation failure. Workaround is at 63ba682

It's easier to diagnose if you pass the nopython=True to the @jit decorator like so:

@jit(nopython=True)

The error message is a bit deceptive; it isn't an error executing the raise ('Error in the decomposition grid: the number of domains decomposition is not equal to the number of CPUs allocated'). It's an error compiling it.