Commits

Matthew Turk  committed 4483702

Fixing compilation

  • Participants
  • Parent commits 548fd76

Comments (0)

Files changed (2)

File src/python/pygrackle/fluid_container.py

 _fluid_names = {}
 _fluid_names[0] = ["HI", "HII", "HeI", "HeII", "HeIII", "de",
     "x-velocity", "y-velocity", "z-velocity",
-    "temperature", "gamma", "energy", "density"]
+    "temperature", "gamma", "energy", "density", "metal_density"]
 _fluid_names[1] = _fluid_names[0] + \
     ["H2I", "H2II", "HM"]
 _fluid_names[2] = _fluid_names[1] + \

File src/python/pygrackle/grackle_wrapper.pyx

 def calculate_temperature(fc):
     cdef gr_int grid_rank = 1
     cdef gr_int grid_dimension
-    cdef c_chemistry_data my_chemistry = fc.chemistry_data.data
-    cdef c_code_units my_units = fc.chemistry_data.units
+    cdef chemistry_data chem_data = fc.chemistry_data
+    cdef c_chemistry_data my_chemistry = chem_data.data
+    cdef c_code_units my_units = chem_data.units
     grid_dimension = fc["density"].shape[0]
     cdef gr_float *density = get_field(fc, "density")
     cdef gr_float *internal_energy = get_field(fc, "energy")