yt-project / yt

Main yt repository
http://yt-project.org
Other
464 stars 276 forks source link

Problem with derived fields in Athena++ refined mesh #2431

Open maxbeegee opened 4 years ago

maxbeegee commented 4 years ago

Bug report

Bug summary

Runtime error occurs when some derived fields are accessed.

Code for reproduction [Using the AM06 publice dataset (1.3GB)]

ds = yt.load("AM06/AM06.out1.00500.athdf")
ad = ds.all_data()
ad['shear']

Actual outcome RuntimeError. Last traceback:

~/libs/python3/yt/yt/data_objects/construction_data_containers.py in _fill_fields(self, fields)
   1058                             chunk.ires, domain_dims, refine_by)
   1059             if level == 0 and tot != 0:
-> 1060                 raise RuntimeError("Level = 0, tot = %d" %(tot))
   1061             self._update_level_state(ls)
   1062         for name, v in zip(fields, ls.fields):

RuntimeError: Level = 0, tot = 1

Full traceback: http://paste.yt-project.org/show/193/

Version Information

Might be related to #2430

neutrinoceros commented 4 years ago

Thanks for reporting this. It seems likely to be related to #2430 indeed.