Skip to content
Snippets Groups Projects
Commit bc000ce0 authored by lhausamm's avatar lhausamm
Browse files

Due to the way grackle is written, need to update grackle_data before calling a grackle function

parent 7f21db23
No related branches found
No related tags found
1 merge request!2Update cooling with Grackle3
......@@ -99,6 +99,10 @@ PyArrayObject* pycooling_rate(PyObject* self, PyObject* args) {
struct part p;
#ifdef COOLING_GRACKLE
grackle_data = &cooling->chemistry;
#endif
/* return object */
PyArrayObject *rate = PyArray_NewLikeArray(energy, NPY_ANYORDER, NULL, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment