cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
60 stars 32 forks source link

Updating Cloudy Cooling for CUDA/hip texture objects #193

Closed alwinm closed 1 year ago

alwinm commented 1 year ago
alwinm commented 1 year ago

Made a light improvement with regards to this: https://github.com/cholla-hydro/cholla/issues/189 I figure if the param file fails to load, it should be fine to exit cholla at that step.

Tested with regression tests of type hydro and cooling, which made me realize I needed to give the textures an initial value in cooling_cuda.cu rather than load_cloudy_textures. The alternative would be an placing ifdef around the kernel call to cooling_kernel, so that when CLOUDY is off, 0s are passed instead of the texture object.