sailfish-team / sailfish

Lattice Boltzmann (LBM) simulation package for GPUs (CUDA, OpenCL)
http://sailfish.us.edu.pl
230 stars 85 forks source link

fix has_symbol() conditional #34

Closed nlooije closed 7 years ago

nlooije commented 8 years ago

Ran into a problem on Windows where symbol in param returns a "TypeError: argument of type 'Mul' is not iterable". Fixed by calling the free_symbols attribute on param which returns a set of symbols. This should work on any platform.