# Modification of “differentiate\_burnable\_mats” in depletion

**URL:** <https://openmc.discourse.group/t/modification-of-differentiate-burnable-mats-in-depletion/5146>\
**Category:** User Support\
**Created:** [January 16, 2025, 3:46am UTC](https://openmc.discourse.group/t/modification-of-differentiate-burnable-mats-in-depletion/5146 "2025-01-16T03:46:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyawlker](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@skyawlker](https://openmc.discourse.group/u/skyawlker)\
**Post date:** [January 16, 2025, 3:46am UTC](https://openmc.discourse.group/t/modification-of-differentiate-burnable-mats-in-depletion/5146/1 "2025-01-16T03:46:49Z")

</div>

Hi @paulromano  
I found that [differentiate\_mats](https://github.com/openmc-dev/openmc/blob/6d731934f4e0b62c3be6094c283a19730d8ce08f/openmc/model/model.py#L1187) method cannot assign the distributed material properly. When I use the ‘match cell’ method, only one material rather than a list is assigned to the repeating cell. That’s seem to be a bug.

I recommend the following modification. This allows the material in the repeating cell to be correctly assigned .

 ![image](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/0/0dd6f8a24ba72ea9bf98fd6e433f046a8ce7ac2c.png)
