Skip to content

MeshMaterialFilter bug with material ids #3518

@egor1abs

Description

@egor1abs

Bug Description

Initially, when reading the documentation, the implementation of bins placement in MeshMaterialFilter is not very clear.

If you look at the example made by @shimwell on the topic of R2S dose rate calculation, you can see mat_iron.id = 1. However, if you change it to another number, for example, more than 6, the bins parameter will be a strange set of values that have nothing to do with the original IDs of the materials.
Because of this, when trying to calculate neutron transport with get_microxs_and_flux method and using the MeshMaterialFilter as domain, the error "Could not find material X specified on tally filter." occurs. The material number indicated in the message has nothing to do with the actual number of materials existing in the model.

It seems to me that the problem of interpreting the number of material id at the C++ code.

Environment

Version | 0.15.3-dev86
Commit Hash | a64cc96
Date/Time | 2025-08-04 12:55:20
MPI Processes | 1
OpenMP Threads | 32

Nuclear library: ENDFB8.0-hdf5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions