pressel / pycles

A python based infrastructure for cloud large eddy simulation.
GNU General Public License v3.0
93 stars 69 forks source link

PyCLES is crashing on MacOSX #21

Closed pressel closed 9 years ago

pressel commented 9 years ago

We are currently dealing with a bug that is causing PyCLES to crash when using the clang compiler on MacOSX. We know when the bug was introduced, and are working to fix it ASAP.

pressel commented 9 years ago

I fixed the bug by changing the name of the function that computes the diffusive momentum fluxes so that it is different from the function that computes the diffusive scalar fluxes. This seems to be some strange issue with the clang compiler, as the code worked perfectly with the GNU compilers. Perhaps there is a compiler flag that would make the code work for clang as well, but changing the function names makes sense anyway.

The only change in the code was changing:

compute_diffusive_flux -> compute_scalar_flux_m in momentum_diffusion.h and MomentumDiffusion.pyx